Re: zlib_filter totally broken?
| From: | Sara Golemon | Date: | Wed, 01 Dec 2004 15:18:28 +0000 |
| Subject: | Re: zlib_filter totally broken? | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-1673@lists.php.net to get a copy of this message | ||
Jim-
Didn't get your attachment, but I'll pull out zlib_filter and dust it off.
The code as a whole is fairly new (relatively speaking) and does some
questionable buffer tricks to avoid reallocs. It's entirely possible that
it's gone wonky. Can you read-send or link to the script you're using and
maybe try zlib_filter-1.0, or the version included in php-src/HEAD(5.1), or
what's in pecl/zlib_filter-cvs just to see if it makes a difference? I'm
not 100% certain that I published the last set of fixes backported from the
version in php-src.
-Sara
"Jim Winstead" <jimw@apache.org> wrote in message
news:20041201041909.GE9839@trainedmonkey.com...
> before i start digging in too deep, is zlib_filter-1.1 totally broken?
> maybe just when having more than one zlib.deflate stream going at once?
>
> the attached script is what i'm testing with -- it relays what is
> written via a unix socket back out through tcp connections, compressing
> along the way.
>
> it basically exhibits behavior like something is scribbling all over
> memory. variables suddenly being corrupt, etc. removing the call to
> stream_filter_append() clears up the problem (but then with no
> compression, obviously).
>
> i'm running it with php 5.0.2.
>
> jim