RE: [PHP-DEV] Proposal: php://memory/<id> (& ://temp/<id>)

From: Date: Thu, 31 Jan 2013 10:34:41 +0000
Subject: RE: [PHP-DEV] Proposal: php://memory/<id> (& ://temp/<id>)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-65532@lists.php.net to get a copy of this message
> I propose the following syntax: > > php://memory/<id> > php://temp/<id>/maxmemory:<size> I would very much like to see this as well. Would this also allow you to open multiple pointers to the same bucket? For example would this work? <?php $fp = fopen('php://memory/foo', 'w+'); file_put_contents('php://memory/foo', 'data'); rewind($fp); // would this be necessary? echo stream_get_contents($fp); // outputs 'data' Best regards Chris Wright

« previous php.internals (#65532) next »