note 89034 added to function.shmop-read

From: Date: Wed, 18 Feb 2009 21:35:11 +0000
Subject: note 89034 added to function.shmop-read
Groups: php.notes 
Request: Send a blank email to php-notes+get-150826@lists.php.net to get a copy of this message
You should always serialize data written in shared memory. And when you are reading data you should always unserialize. <?php $data = 'test'; $shm_bytes_written = shmop_write($shm_id, serialize($data), 0); $shm_data = unserialize(shmop_read($shm_id, 0, $shm_bytes_written)); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 212.102.131.40 ---- Manual Page -- http://www.php.net/manual/en/function.shmop-read.php Edit -- https://master.php.net/note/edit/89034 Del: integrated -- https://master.php.net/note/delete/89034/integrated Del: useless -- https://master.php.net/note/delete/89034/useless Del: bad code -- https://master.php.net/note/delete/89034/bad+code Del: spam -- https://master.php.net/note/delete/89034/spam Del: non-english -- https://master.php.net/note/delete/89034/non-english Del: in docs -- https://master.php.net/note/delete/89034/in+docs Del: other reasons-- https://master.php.net/note/delete/89034 Reject -- https://master.php.net/note/reject/89034 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150826) next »