From:             [EMAIL PROTECTED]
Operating system: Windows NT
PHP version:      4.0.4pl1
PHP Bug Type:     Filesystem function related
Bug description:  Filesystem read not binary safe?

Running PHP 4.0.4pl1 as an apache module (php4apache.dll)

When reading and writing files using any function except include() and require() the 
reading and writing seems to stop whenever a char(0) is encountered... I'm not exactly 
sure that is what happens, but textfiles are read and written without problems, binary 
files are cut short.

e.g.:

<?php
  readfile("someimage.gif");
?>

delivers only a small part of the image, resulting in a broken image tag (usually) or 
the top part of the image (sometimes). Whereas:

<?php
  include("someimage.gif");
?>

does deliver the entire image (or a parse error :)



-- 
Edit Bug report at: http://bugs.php.net/?id=9373&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to