#41735 [Com]: file_exists reports incorrect results

From: Date: Sun, 22 Jul 2007 20:05:58 +0000
Subject: #41735 [Com]: file_exists reports incorrect results
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-115317@lists.php.net to get a copy of this message
ID: 41735 Comment by: tstarling at wikimedia dot org Reported By: php-bug at okra dot org Status: No Feedback Bug Type: Filesystem function related Operating System: Windows Server 2003 PHP Version: 5.2.3 New Comment: Here's a batch file for the reproducibly challenged: mkdir unlistable mkdir unlistable\subdir echo Hello > unlistable\subdir\file echo y| cacls unlistable\subdir /g "%USERNAME%":F echo y| cacls unlistable /d "%USERNAME%" php -r "print file_exists('unlistable').\"\n\";" php -r "print file_exists('unlistable\subdir').\"\n\";" php -r "print file_exists('unlistable\subdir\file').\"\n\";" Output is 1, blank, 1. Previous Comments: ------------------------------------------------------------------------ [2007-07-22 19:23:30] tstarling at wikimedia dot org This is reproducible by denying the "list folder contents" right for d:\home but allowing it for d:\home\domain.com. This surely must be a common setup for shared hosts. ------------------------------------------------------------------------ [2007-07-04 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2007-06-26 22:55:26] stas@php.net It would be useful to know permissions on all involved directories and also the user under which the test was done. ------------------------------------------------------------------------ [2007-06-26 12:17:49] tony2001@php.net Not reproducible. ------------------------------------------------------------------------ [2007-06-26 08:01:31] php-bug at okra dot org No change with the snapshot (5.2.4-dev). FYI, this bug also exists in PHP 4.4.7 and 4.4.6. I'm not sure about earlier versions of PHP 4. As mentioned in the original bug report, it did NOT exist in PHP 5.2.1. ------------------------------------------------------------------------ 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/41735 -- Edit this bug report at http://bugs.php.net/?id=41735&edit=1

« previous php.bugs (#115317) next »