Re: For Wez : Stream Abstraction over a String

From: Date: Tue, 23 Oct 2001 15:21:01 +0000
Subject: Re: For Wez : Stream Abstraction over a String
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-68831@lists.php.net to get a copy of this message
Andrei, > Perhaps I'm missing something, but can you explain how this is better > than what we have now? the power of abstraction <g> i'll give you an example of why i want it. im working on resultset caching in a DB astraction layer, and im giving the user the option of saving to XML or a more compact format. i'd like to give the user options as to how and where the data is stored. if the user has file system access and wants to do it that way, then fine. if however, they want to use the session mechanism and stick it into a zval string, then its gravy. the point is to allow for flexibility. in any case, its a pain to have to write two sets of code to write to a 'proper' stream (file or sockets) , and to write another set of routines to store to a string. with a unified approach, you get the flexibility you need all for free. l0t3k Andrei Zmievski <andrei@ispi.net> wrote in message news:20011023081914.D28897@ispi.net... > On Tue, 23 Oct 2001, Wez Furlong wrote: > > Yep, or something like it. > >

« previous php.dev (#68831) next »