Re: Substring writes and buffered char streams

From: Date: Sat, 07 Aug 2004 13:30:01 +0000
Subject: Re: Substring writes and buffered char streams
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-11989@lists.php.net to get a copy of this message
On Sat, 07 Aug 2004 09:14:35 -0400, jtl_phpdotnet@spamex.com <jtl_phpdotnet@spamex.com> wrote: > (1) Writing an arbitrary substring of a string directly to a stream without first creating a > string object for the substring. I.E. There is no print($string, $start, $length) or > fwrite($resource, $string, $length, $start). I suppose we could add that. Keep in mind that strings in PHP aren't hugely expensive unless you are doing something wrong (tm) like using 10MB strings. > (2) Creating multiple independent buffered characters streams. It appears that stdout is the > only instance available. $fp = fopen(...) ? $fp = tmpfile() ? Need more details as to wtf you mean here. --Wez.

« previous php.internals (#11989) next »