#26856 [Opn->Bgs]: fread problem
| From: | andrey@php.net | Date: | Fri, 09 Jan 2004 19:22:23 +0000 |
| Subject: | #26856 [Opn->Bgs]: fread problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53044@lists.php.net to get a copy of this message | ||
ID: 26856
Updated by: andrey@php.net
Reported By: robson at tikaboo dot com dot br
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: mdk 9.1
PHP Version: 4.3.4
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Use strict checking. === of == and checking against false/true. PHP is
close to C but not C, we have boolean type.
Look here for an example :
http://de3.php.net/manual/en/function.readdir.php
Previous Comments:
------------------------------------------------------------------------
[2004-01-09 14:06:54] robson at tikaboo dot com dot br
Description:
------------
I´m trying to read an archive as follow :
$fp = fopen($arc,"r");
while( $ch = fread($fp,1) )
but when read a zero ( 0 ) , it stops ( like a EOF )
if I change my code, reading two bytes while( $ch = fread($fp,2) )
, it works with no problem.
tks
Robson
Brazil
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26856&edit=1