#24086 [Fbk->NoF]: file_exists generates false error

From: Date: Thu, 26 Jun 2003 23:20:51 +0000
Subject: #24086 [Fbk->NoF]: file_exists generates false error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-42597@lists.php.net to get a copy of this message
ID: 24086 Updated by: sniper@php.net Reported By: danfratus at attbi dot com -Status: Feedback +Status: No Feedback Bug Type: Filesystem function related Operating System: Windows XP Professional PHP Version: 4.3.2 New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2003-06-16 03:27:51] derick@php.net You're saying you have a file with a name '...' ? Derick ------------------------------------------------------------------------ [2003-06-16 03:26:01] danfratus at attbi dot com PHP Falsely recognizes "..." as a valid directory, then triest to use this, but obviously it cannot since it isn't a valid directory. For instance: if (file_exists("$file") && $file != "." && $file != "..") Filesystems recognize "." and ".." as directories, but filesystems do not recognize "..." as a directory, PHP _DOES_, this is the glitch. If in the above code $file is "..." PHP generates an error. I can't make it anymore clear than that. ------------------------------------------------------------------------ [2003-06-16 03:13:56] derick@php.net Where is the bug? I don't see anything in your report that is not correct... ------------------------------------------------------------------------ [2003-06-16 02:17:26] danfratus at attbi dot com No feedback is necessary, the bug submission is strait forward. if(file_exists("...")) generates errors. ------------------------------------------------------------------------ [2003-06-15 23:45:59] sniper@php.net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ 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/24086 -- Edit this bug report at http://bugs.php.net/?id=24086&edit=1

« previous php.bugs (#42597) next »