#29769 [Opn->Fbk]: PHP crashes while receiving an ibase event
ID: 29769
Updated by: tony2001@php.net
Reported By: sascha dot uhl at gmx dot net
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Windows 2000
PHP Version: 5.0.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-08-20 10:45:22] sascha dot uhl at gmx dot net
Description:
------------
PHP crashes while using the ibase event alerter feature with firebird
1.5.1.
I am using Apache 2.0.50, Firebird 1.5.1 and finally PHP 5.0.1.
I execute the script, which is waiting for an db event. When the event
happens, Dr.Watson appeares and PHP crashes.
Reproduce code:
---------------
function event_handler($event_name, $connection)
{
echo "<br>ein event";
if ($event_name=="RBS_UPDATE") {
$query = "SELECT RBS_RFPI, RBS_ISON FROM TBL_RBS ORDER BY
RBS_RFPI";
$result = ibase_query($query);
while ($row = ibase_fetch_object ($result)) {
// echo $row->RBS_RFPI . " " . $row->RBS_ISON . "<br>";
echo "<script type='text/javascript'>
updateRBSState('$row->RBS_RFPI',s".$row->RBS_ISON.");
</script>";
}
}
}
ibase_set_event_handler($connection, "event_handler", "RBS_UPDATE");
ibase_wait_event($connection, "RBS_UPDATE");
Expected result:
----------------
After receiving the event, the callback function should write the
output to the browser.
Actual result:
--------------
Sorry, no backtrace...
Receiving the result ends in Dr.Watson for PHP
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29769&edit=1
Thread (3 messages)