On 17/03/02, "Marcus Börger" <[EMAIL PROTECTED]> wrote:
> they do an auto resize so append will work but you can also use
> seek to overwrite in a memory stream.
Great!
> >I'm planning an API that will give you back a seekable stream
> >so the logic to determine when and what type of alternativ
gt;
>
> > Date: Sun, 17 Mar 2002 05:26:39
> > +0100
> >
> > To: Wez Furlong
> >
> > From: Marcus Börger
> >
> > Subject: [PHP-DEV] Re: memory streams
> >
> > Cc: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
NULL);
+ return
zend_hash_add(&url_stream_wrappers_hash, protocol, strlen(protocol),
wrapper, sizeof(*wrapper), NULL);
marcus
Date: Sun, 17 Mar 2002 05:26:39
+0100
To: Wez Furlong <[EMAIL PROTECTED]>
From: Marcus Börger <[EMAIL PROTECTED]>
Subject: [PHP-DEV] Re: memory streams
Cc: [EMAIL P
>Date: Sun, 17 Mar 2002 04:16:07 +0100
>To: Wez Furlong <[EMAIL PROTECTED]>
>From: Marcus Börger <[EMAIL PROTECTED]>
>Subject: Re: [PHP-DEV] Re: memory streams
>
>>As for the strange problems you have in the exif extension;
>>if you switch to a stream opene
At 02:56 17.03.2002, Wez Furlong wrote:
>Hi Markus,
>
>(Sorry: I think I deleted the most relevant mail, so I'm replying to
>this one :-)
>
>Thanks for your work on the memory streams; I have a couple of
>comments about them:
>
>As they stand now, it is only possible to write in append mode.
>(Or
Hi Markus,
(Sorry: I think I deleted the most relevant mail, so I'm replying to
this one :-)
Thanks for your work on the memory streams; I have a couple of
comments about them:
As they stand now, it is only possible to write in append mode.
(Or it looked that way from my quick glance).
It would
Little problem in php_stream_copy_to_stream:
When copying the whole fstream the result is zero - should be size
See patch.
marcus
diff -u -w -r1.23 streams.c
--- main/streams.c 16 Mar 2002 18:52:03 - 1.23
+++ main/streams.c 16 Mar 2002 19:45:31 -
@@ -377,8 +377,12 @@
At 19:53 16.03.2002, Wez Furlong wrote:
>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 i
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 impleme