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