ID: 31527 Updated by: [EMAIL PROTECTED] Reported By: zxd at zhangxiaodong dot net -Status: Verified +Status: Closed Bug Type: Reproducible crash Operating System: RedHat Linux AS3 2.4.21-20 i686 PHP Version: 5.0.3 New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2005-01-13 07:04:29] zxd at zhangxiaodong dot net use a string instead of Integer can get right result. eg. msg_send($qid, 1, $a); ------ msg_send($qid, 1, "$a", false); ------ settype($a,"string"); msg_send($qid, 1, $a, false); ------ $a = "1234" msg_send($qid, 1, $a, false); ------------------------------------------------------------------------ [2005-01-13 06:55:20] zxd at zhangxiaodong dot net Description: ------------ The type and value of a Integer varible passed to function msg_send which do not use serialize will be changed after 1 second sleep. Reproduce code: --------------- function t18(){ $a = 1234; $qid = msg_get_queue($a); // cause core dump msg_send($qid, 1, $a, false); sleep(1); echo "type of a=".gettype($a)."\n"; echo "value of a= {$a}\n"; } Expected result: ---------------- type of a=integer value of a=1234 Actual result: -------------- type of a=integer value of a= 0 segment falut(core dumped) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31527&edit=1
