#29769 [Fbk->NoF]: PHP crashes while receiving an ibase event

From: Date: Fri, 18 Feb 2005 00:00:06 +0000
Subject: #29769 [Fbk->NoF]: PHP crashes while receiving an ibase event
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74250@lists.php.net to get a copy of this message
 ID:               29769
 Updated by:       php-bugs@lists.php.net
 Reported By:      sascha dot uhl at gmx dot net
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         Reproducible crash
 Operating System: Windows 2000
 PHP Version:      5.0.1
 New Comment:

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


Previous Comments:
------------------------------------------------------------------------

[2005-02-10 00:31:01] tony2001@php.net

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



------------------------------------------------------------------------

[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)

« previous php.bugs (#74250) next »