#29023 [Opn->Csd]: fread() only reads 8192 bytes from a local file
| From: | sniper@php.net | Date: | Mon, 23 May 2005 12:58:47 +0000 |
| Subject: | #29023 [Opn->Csd]: fread() only reads 8192 bytes from a local file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79384@lists.php.net to get a copy of this message | ||
ID: 29023
Updated by: sniper@php.net
Reported By: benjcarson at digitaljunkies dot ca
-Status: Open
+Status: Closed
Bug Type: Filesystem function related
Operating System: Linux
PHP Version: 5CVS-2004-07-05 (dev)
Assigned To: wez
Previous Comments:
------------------------------------------------------------------------
[2005-05-22 00:39:12] lsmith@php.net
I think there are a couple dupes (#32810, #32469, maybe even #30441)
of this one. And on a recent win head snapshot it was still broken:
php5-win32-200505191430
------------------------------------------------------------------------
[2004-07-10 12:57:28] wez@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2004-07-06 16:42:38] benjcarson at digitaljunkies dot ca
While I realize that file_get_contents() is faster, the code that lead
me to this bug was not my own. It was Smarty (2.6.2, although 2.6.3
has the same problem), which has worked very well with PHP5 until now.
------------------------------------------------------------------------
[2004-07-06 15:26:51] sniper@php.net
I really can't see how this can be CORRECT behaviour as this has worked
(like it says in docs too :) before just fine.
OTOH, you should always use file_get_contents() instead anyway. :)
------------------------------------------------------------------------
[2004-07-06 09:14:52] derick@php.net
Assigning to Wez... although I'd say that this is *correct* behavior,
it shouldn't cause a BC break.
------------------------------------------------------------------------
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/29023
--
Edit this bug report at http://bugs.php.net/?id=29023&edit=1