From: [EMAIL PROTECTED]
Operating system: Windows XP SP2
PHP version: 5CVS-2007-01-25 (snap)
PHP Bug Type: Scripting Engine problem
Bug description: file_exists incorrectly reports false
Description:
------------
Latest release fails to find files using file_exists.
2 different computers, both Windows XP SP2.
In both cases the allow_url_xxx settings are the same (the only thing I
can think of which may affect this).
The code was run via the command line. Copying the PHP installation from
the working machine to the non-working machine results in 2 working
machines. The only files altered exist within C:\PHP5. No other settings
or ini files have been altered between releases.
Reproduce code:
---------------
@echo off
echo Find file using normal DOS command.
echo ===================================
dir
\\bandexch\bandvulcfaxesreceived\2007\01\25\2007-01-25__00-00__Page-0001__9FNM7E.tif
echo.
echo.
echo Report PHP Version.
echo ===================
php -v
echo.
echo.
echo Find the same file using PHP's file_exists command.
echo ===================================================
php -r
"var_export(file_exists('\\\\bandexch\\bandvulcfaxesreceived\\2007\\01\\25\\2007-01-25__00-00__Page-0001__9FNM7E.tif'));"
Expected result:
----------------
Find file using normal DOS command.
===================================
Volume in drive \\bandexch\bandvulcfaxesreceived has no label.
Volume Serial Number is 94A0-8C6D
Directory of \\bandexch\bandvulcfaxesreceived\2007\01\25
25/01/2007 00:01 19,921
2007-01-25__00-00__Page-0001__9FNM7E.tif
1 File(s) 19,921 bytes
0 Dir(s) 34,604,453,888 bytes free
Report PHP Version.
===================
PHP 5.2.1RC3-dev (cli) (built: Jan 11 2007 16:24:41)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Zend Extension Manager v1.0.11, Copyright (c) 2003-2006, by Zend
Technologies
with Zend Optimizer v3.2.0, Copyright (c) 1998-2006, by Zend
Technologies
Report the state of allow_url_xxx
=================================
string(1) "1"
string(1) "0"
Find the same file using PHP's file_exists command.
===================================================
true
Actual result:
--------------
Find file using normal DOS command.
===================================
Volume in drive \\bandexch\bandvulcfaxesreceived has no label.
Volume Serial Number is 94A0-8C6D
Directory of \\bandexch\bandvulcfaxesreceived\2007\01\25
25/01/2007 00:01 19,921
2007-01-25__00-00__Page-0001__9FNM7E.tif
1 File(s) 19,921 bytes
0 Dir(s) 34,604,462,080 bytes free
Report PHP Version.
===================
PHP 5.2.1RC4-dev (cli) (built: Jan 25 2007 08:24:12)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Zend Extension Manager v1.0.11, Copyright (c) 2003-2006, by Zend
Technologies
with Zend Optimizer v3.2.0, Copyright (c) 1998-2006, by Zend
Technologies
Report the state of allow_url_xxx
=================================
string(1) "1"
string(1) "0"
Find the same file using PHP's file_exists command.
===================================================
false
--
Edit bug report at http://bugs.php.net/?id=40231&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=40231&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=40231&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=40231&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40231&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=40231&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40231&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40231&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40231&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40231&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40231&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=40231&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=40231&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40231&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40231&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40231&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40231&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40231&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40231&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40231&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40231&r=mysqlcfg