note 13021 deleted from function.shmop-write by jimw

From: Date: Thu, 20 Dec 2001 22:20:47 +0000
Subject: note 13021 deleted from function.shmop-write by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23482@lists.php.net to get a copy of this message
when you are writing to shared memory, previous bytes are overwritten and the whole string is not replaced. <pre> $shm_id = shmop_open(0xff3, "c", 0644, 100); $bytes_written = shmop_write($shm_id, "my shared memory block", 0); $second_write = shmop_write($shm_id, "foobar", 0); $my_string = shmop_read($shm_id, 0, 100); echo $my_string; </pre> will print "foobarred memory block"

« previous php.notes (#23482) next »