Archived

This forum has been archived. Please start a new discussion on GitHub.

About IcePHP exception?

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";
}
?>

Comments

  • mes
    mes California
    Hi,

    Thanks, I was able to reproduce this behavior on Windows, but I haven't been able to discover the cause yet. I tried many times to get it to happen on Linux, but without success. I'll post a reply when I have more information.

    Take care,
    - Mark
  • mes
    mes California
    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,
    - Mark