#31527 [NEW]: msg_send wrong serialize on Integer

From: Date: Thu, 13 Jan 2005 05:55:20 +0000
Subject: #31527 [NEW]: msg_send wrong serialize on Integer
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72060@lists.php.net to get a copy of this message
From: zxd at zhangxiaodong dot net Operating system: RedHat Linux AS3 2.4.21-20 i686 PHP version: 5.0.3 PHP Bug Type: Scripting Engine problem Bug description: msg_send wrong serialize on Integer 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 bug report at http://bugs.php.net/?id=31527&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31527&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31527&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31527&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31527&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31527&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31527&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31527&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31527&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31527&r=support Expected behavior: http://bugs.php.net/fix.php?id=31527&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31527&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31527&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31527&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31527&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31527&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31527&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31527&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31527&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31527&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31527&r=mysqlcfg

« previous php.bugs (#72060) next »