On 31/01/13 11:12, ALeX wrote:
Hi Ivan,
php://memory/<id>
php://temp/<id>/maxmemory:<size>
It's not that hard to write such an function in php.
(http://www.php.net/manual/en/function.stream-wrapper-register.php).
Did I say it was hard? This is quite obvious to write such a wrapper,
but PHP has php://memory. My proposal will save future work to users
(and offer better performance because we stay in the PHP land).
I even once wrote an handler like "string://data-right-here" which
allows to read (only) the "data-right-here" as a file. (I used it for
a function which required a file and does not support strings
directly, and instead of php://memory all data is freed when no longer
used)
Yes. I also have Hoa\Stringbuffer or some stuff like that. But, again,
it will save future work to users.
Best regards.
--
Ivan Enderlin
Developer of Hoa
http://hoa-project.net/
PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis)
http://disc.univ-fcomte.fr/ and http://www.inria.fr/
Member of HTML and WebApps Working Group of W3C
http://w3.org/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php