From: l_faillie at yahoo dot com
Operating system: Solaris 8
PHP version: 4.3.3
PHP Bug Type: Unknown/Other Function
Bug description: Can't store multiple variables in SHM
Description:
------------
Hi all,
It seems only one variable can be stored in a SHM zone.
Reproduce code:
---------------
Source 1 : storing variables
$shm = shm_attach( 2710, 512);
shm_put_var( $shm, 'val', 'blabla');
shm_put_var( $shm, 'jour', date('D'));
Source 2 : reading variables
$shm = shm_attach( 2710, 512);
echo 'val :', shm_get_var($shm, 'val'), "\n";
echo 'jour :', shm_get_var($shm, 'jour'), "\n";
Expected result:
----------------
val :blabla
jour :Sat
Actual result:
--------------
val :Sat
jour :Sat
--
Edit bug report at http://bugs.php.net/?id=26177&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26177&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26177&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26177&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26177&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26177&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26177&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26177&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26177&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26177&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26177&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26177&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26177&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26177&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26177&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26177&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26177&r=float