ID: 44893
Updated by: [EMAIL PROTECTED]
Reported By: sworddragon2 at aol dot com
Status: Open
-Bug Type: Zlib Related
+Bug Type: Feature/Change Request
Operating System: Windows XP Professional SP3
PHP Version: 5CVS, 6CVS (2008-10-30)
New Comment:
gzfile() is not binary-safe. So the behaviour here isn't really
unexpected. Anyway, you're better of using gzread() instead when dealing
with binary files.
Previous Comments:
------------------------------------------------------------------------
[2008-11-02 23:13:05] sworddragon2 at aol dot com
I tried it with wb, but it doesn't help.
The problem is, that gzfile stops the read process after 7/132 byte.
The read process is breaking after gzfile reads the ETB (End
Transmission Block), which is the seventh char of this picture.
------------------------------------------------------------------------
[2008-10-30 17:15:40] [EMAIL PROTECTED]
$file=gzopen("smiley1.gz","w");
I think that should also be "wb" under windows..
------------------------------------------------------------------------
[2008-10-30 17:14:14] [EMAIL PROTECTED]
What actually is the bug here? You're concatenating same image in same
file and expect..what?
------------------------------------------------------------------------
[2008-10-29 17:29:49] sworddragon2 at aol dot com
I tested it with the 5.2.7RC2-dev and the 5.3.0alpha3-dev from your
link, but the bug isn't fixed. In both versions, Firefox 3.0.3 gives me
an output of:
Array
(
[0] => GIF89a
)
It breaks again after the End Transmission Block. I used the same
picture again.
------------------------------------------------------------------------
[2008-05-06 11:08:43] [EMAIL PROTECTED]
Im able to re-produce this on Windows XP SP2 using the image you
supplied aswell as with other files would return odd strings
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/44893
--
Edit this bug report at http://bugs.php.net/?id=44893&edit=1