Archived
This forum has been archived. Please start a new discussion on GitHub.
About IcePHP exception?
alesio
in Help Center
hi,
I have a problem with the ice exception.The follow code is a part of "hello.php" demo.if the Apache server is not run,it will catch the connection exception.then if I try to connect a few times, the memory error
dialog is display.WHY?
Besides that, all the user exceptions have the same status. Wish you can give me a good news,thanks.
<?php
Ice_loadProfile();
try
{
$p = $ICE->stringToProxy("hello:tcp -p 10000:udp -p 10000");
if($p->ice_isTwoway())
{
$hello = $p->ice_checkedCast("::Hello");
}
}
catch(Ice_LocalException $ex)
{
echo "<pre>\n";
print_r($ex);
echo "</pre>\n";
}
?>
I have a problem with the ice exception.The follow code is a part of "hello.php" demo.if the Apache server is not run,it will catch the connection exception.then if I try to connect a few times, the memory error
dialog is display.WHY?
Besides that, all the user exceptions have the same status. Wish you can give me a good news,thanks.
<?php
Ice_loadProfile();
try
{
$p = $ICE->stringToProxy("hello:tcp -p 10000:udp -p 10000");
if($p->ice_isTwoway())
{
$hello = $p->ice_checkedCast("::Hello");
}
}
catch(Ice_LocalException $ex)
{
echo "<pre>\n";
print_r($ex);
echo "</pre>\n";
}
?>
0
Comments
-
After a lot of research, I've determined that this is caused by a bug in PHP, and not in IcePHP. I've submitted a PHP bug report which you can find here.
If this bug is a serious problem for you, it's possible that compiling PHP in debug mode will avoid it. Let me know if you need help building PHP from source, as it takes some effort.
Take care,
- Mark0
