Bug #68680 [NEW]: ibase_wait_event not returning correct event

From: Date: Mon, 29 Dec 2014 06:17:23 +0000
Subject: Bug #68680 [NEW]: ibase_wait_event not returning correct event
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189298@lists.php.net to get a copy of this message
From: ffortuny at gmail dot com Operating system: Linux Ubuntu 14.+ PHP version: 5.5.20 Package: InterBase related Bug Type: Bug Bug description:ibase_wait_event not returning correct event Description: ------------ --- From manual page: http://www.php.net/function.ibase-wait-event --- $con=gldbConnect(); $ev1="newmsgi".$idu; $ev2="usrout".$idc; $ev3="usrin".$idc; $ev4="chat".$idu; $ev=ibase_wait_event($con,$ev1,$ev2,$ev3,$ev4); error_log($ev1."-".$ev2."-".$ev3."-".$ev4."- de base: ".$ev); Test script: --------------- $con=gldbConnect(); $ev1="newmsgi".$idu; $ev2="usrout".$idc; $ev3="usrin".$idc; $ev4="chat".$idu; $ev=ibase_wait_event($con,$ev1,$ev2,$ev3,$ev4); error_log($ev1."-".$ev2."-".$ev3."-".$ev4."- de base: ".$ev); In this code, the Firebird Database posts events depending on any one of 4 possible table inserts or updates. $ev1 "newmsgi".$idu is generated when a new message is sent to user $idu. This works fine all the time. Is it because it is the first argument? If usrin or chat happen, then ibase_wait_event reports "usrout"; if usrout happens, ibase_wait_event reports NOTHING (does not end anything to the error_log) Expected result: ---------------- the expected result is that when this code is executed: $con=gldbConnect(); $ev1="newmsgi".$idu; $ev2="usrout".$idc; $ev3="usrin".$idc; $ev4="chat".$idu; $ev=ibase_wait_event($con,$ev1,$ev2,$ev3,$ev4); error_log($ev1."-".$ev2."-".$ev3."-".$ev4."- de base: ".$ev); the above code is executed, $ev will take the value of the actual event that Firebird Sent. This was OK in versión 5.3 of PHP. As I just Actual result: -------------- $ev1 "newmsgi".$idu is generated when a new message is sent to user $idu. This works fine all the time. Is it because it is the first argument? If usrin or chat happen, then ibase_wait_event reports "usrout"; if usrout happens, ibase_wait_event reports NOTHING (does not send anything to the error_log) -- Edit bug report at https://bugs.php.net/bug.php?id=68680&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68680&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68680&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68680&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68680&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68680&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68680&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68680&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68680&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68680&r=support Expected behavior: https://bugs.php.net/fix.php?id=68680&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68680&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68680&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68680&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68680&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68680&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68680&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68680&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68680&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68680&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68680&r=mysqlcfg

« previous php.bugs (#189298) next »