Bug #12536: fread does not look to be working right
| From: | knightemu at yahoo dot com | Date: | Thu, 02 Aug 2001 21:34:06 +0000 |
| Subject: | Bug #12536: fread does not look to be working right | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-61890@lists.php.net to get a copy of this message | ||
From: knightemu@yahoo.com
Operating system: win 98 box
PHP version: 4.0.4pl1
PHP Bug Type: Performance problem
Bug description: fread does not look to be working right
fread does not look like it is reading the EOF. when i use a large (HUDGE)
number to tell the fread() how many characters to read, it takes a l o n g
time for this to complete!!!! this happens even when the file is very
short.
i descoverd this when i was trying to read an entire file into a string. is
fread the best way to do this?? it does not seem to be working very well.
there is also a error reporting problem with fread. after the same number
gets too big, php stops processing the entire page, (it does check
syntax)
there is als no error message when this happens.....
Knight
--
Edit bug report at: http://bugs.php.net/?id=12536&edit=1