#40231 [Opn]: file_exists incorrectly reports false

From: Date: Thu, 25 Jan 2007 08:49:11 +0000
Subject: #40231 [Opn]: file_exists incorrectly reports false
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-108020@lists.php.net to get a copy of this message
ID: 40231 User updated by: RQuadling@php.net Reported By: RQuadling@php.net Status: Open Bug Type: Scripting Engine problem Operating System: Windows XP SP2 PHP Version: 5CVS-2007-01-25 (snap) New Comment: Sorry. I forgot to mention that of the 2 machines, only 1 had been upgraded to the latest snapshot and this is the machine that is not working but had been prior to the upgrade. Previous Comments: ------------------------------------------------------------------------ [2007-01-25 08:47:58] RQuadling@php.net 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 this bug report at http://bugs.php.net/?id=40231&edit=1

« previous php.bugs (#108020) next »