From:             [EMAIL PROTECTED]
Operating system: Windows 2000 (Windows NT WEB 5.0
PHP version:      5.1.4
PHP Bug Type:     *Web Server problem
Bug description:  file_get_contents() returns false but is_readable() returns 
true

Description:
------------
file_get_contents() returns false but is_readable() returns true where
file.php is a blank PHP file (0 bytes) with full world writable
permissions.

phpinfo() output at http://www.cabalonline.com/bug/php.php

Server API: CGI/FastCGI

Reproduce code:
---------------
<?php
if (!file_get_contents('file.php'))
{
        echo 'file_get_contents: false';
}
else
{
        echo 'file_get_contents: true';
}
?>
<br />
<?php
if (!is_readable('file.php'))
{
        echo 'is_readable: false';
}
else
{
        echo 'is_readable: true';
}
?>

Expected result:
----------------
file_get_contents: true
is_readable: true

Actual result:
--------------
file_get_contents: false
is_readable: true

-- 
Edit bug report at http://bugs.php.net/?id=37960&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37960&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37960&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37960&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37960&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37960&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37960&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37960&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37960&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37960&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37960&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37960&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37960&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37960&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37960&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37960&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37960&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37960&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37960&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37960&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37960&r=mysqlcfg

Reply via email to