php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29769 PHP crashes while receiving an ibase event
Submitted: 2004-08-20 10:45 UTC Modified: 2008-11-21 12:43 UTC
From: sascha dot uhl at gmx dot net Assigned:
Status: No Feedback Package: InterBase related
PHP Version: 5.0.1 OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sascha dot uhl at gmx dot net
New email:
PHP Version: OS:

 

 [2004-08-20 10:45 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-18 01:00 UTC] php-bugs at lists dot php dot net
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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC