SyncSharedMemory::__construct Constructs a new SyncSharedMemory object &reftitle.description; public SyncSharedMemory::__construct stringname intsize Constructs a named shared memory object. &reftitle.parameters; name The name of the shared memory object. If the name already exists, it must be able to be opened by the current user that the process is running as or an exception will be thrown with a meaningless error message. size The size, in bytes, of shared memory to reserve. The amount of memory cannot be resized later. Request sufficient storage up front. &reftitle.returnvalues; The new SyncSharedMemory object. &reftitle.errors; An exception is thrown if the shared memory object cannot be created or opened. &reftitle.examples; <function>SyncSharedMemory::__construct</function> example first()) { // Do first time initialization work here. } $result = $mem->write(json_encode(array("name" => "my_report.txt"))); ?> ]]> &reftitle.seealso; SyncSharedMemory::first SyncSharedMemory::size SyncSharedMemory::write SyncSharedMemory::read