> 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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to