note 26858 added to language.oop.serialization

From: Date: Fri, 15 Nov 2002 03:07:20 +0000
Subject: note 26858 added to language.oop.serialization
Groups: php.notes 
Request: Send a blank email to php-notes+get-39514@lists.php.net to get a copy of this message
Don't forget to lock your storage file using flock() before opening the file you wish to use to store your serialized object(s)! PHP will make no attempt to prevent two threads or processes from writing to your file at the same time and you can easily end up with a corrupted data store unless you serialize access to your storage. (Note that using NFS for your storage may not be lock-safe.) -- http://www.php.net/manual/en/language.oop.serialization.php http://master.php.net/manage/user-notes.php?action=edit+26858 http://master.php.net/manage/user-notes.php?action=delete+26858 http://master.php.net/manage/user-notes.php?action=reject+26858

« previous php.notes (#39514) next »