Re: memory streams
| From: | Wez Furlong | Date: | Sat, 16 Mar 2002 18:53:54 +0000 |
| Subject: | Re: memory streams | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-81356@lists.php.net to get a copy of this message | ||
Damn; you're half right :-)
Your seeker implementation should spot the offset=0 whence=SEEK_CUR
case and return the current position.
I've fixed the stdio stream implementation to do this.
Please don't change the php_stream_ops structure, as there is no
need.
How are your memory streams implemented? (I was about to start on
those!)
--Wez.
On 17/03/02, "Marcus Boerger" <520072483730-0001@t-online.de> wrote:
> At the moment i am working at memory-streams....
>
> If have the following problem left:
> I must extend
> struct _php_stream_ops
> with ftell....
>
> by the way php_stream_tell is wrong because it relies on seek and
> that does return either 0 on success or an erroecode....
>
> regards
> marcus
>
>
>
> --------->>> mailto:marcus.boerger@post.rwth-aachen.de
> <<<------------
> I don't want to start any blashphemous rumours
> but i think that god's got a sick sense of humor
> and when i die i expect to find him laughing.
> Depeche Mode
> --------------->>> http://www.marcus-boerger.de
> <<<-------------------