From:             sascha dot uhl at gmx dot net
Operating system: Windows 2000
PHP version:      5.0.1
PHP Bug Type:     Reproducible crash
Bug description:  PHP crashes while receiving an ibase event

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 bug report at http://bugs.php.net/?id=29769&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29769&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29769&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29769&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29769&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29769&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29769&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29769&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29769&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29769&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29769&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29769&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29769&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29769&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29769&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29769&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29769&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29769&r=float

Reply via email to