ID: 45585
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Filesystem function related
Operating System: *
PHP Version: 6CVS-2008-07-21 (CVS)
New Comment:
In 5.2/5.3 it returns empty string, in PHP 6 FALSE.
Previous Comments:
------------------------------------------------------------------------
[2008-07-21 16:33:34] [EMAIL PROTECTED]
Description:
------------
# echo "1" > /tmp/test.txt
# php_5_2/sapi/cli/php -n -r '$fp=fopen("/tmp/test.txt", "r"); while(1)
{$a=fread($fp, 8192); if (!$a) {var_dump($a); exit;}}'
string(0) ""
# php_5_3/sapi/cli/php -n -r '$fp=fopen("/tmp/test.txt", "r"); while(1)
{$a=fread($fp, 8192); if (!$a) {var_dump($a); exit;}}'
string(0) ""
# php_6/sapi/cli/php -n -r '$fp=fopen("/tmp/test.txt", "r"); while(1)
{$a=fread($fp, 8192); if (!$a) {var_dump($a); exit;}}'
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45585&edit=1