#18920 [NEW]: file_exists() doesn't work with relativ path's

From: Date: Thu, 15 Aug 2002 16:14:02 +0000
Subject: #18920 [NEW]: file_exists() doesn't work with relativ path's
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16912@lists.php.net to get a copy of this message
From: jan.lange@artada.de Operating system: RedHat 7.2 Linux 2.4.18 PHP version: 4CVS-2002-08-15 PHP Bug Type: Filesystem function related Bug description: file_exists() doesn't work with relativ path's Hi, I have installed Apache 2.0.40 and PHP 4.3-dev and I have a Programm (horde.org) that isn't working. I have analyze the scripts and I see that they use the file_exists() function with relative path's. I wrote a Test Script with echo file_exists ("./test.txt"); and when I run it, I get back a 0 When I set the full path to the file, then I get back a 1. If I test the mini-script on PHP 4.2.2 on shell, it works with relativ path's. After that I added this: echo getcwd(); to show whether the Apache starts the PHP Script in the correct directory, and it were right. So I think it is a PHP 4.3 bug in file_exists() Greetings Jan -- Edit bug report at http://bugs.php.net/?id=18920&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18920&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18920&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18920&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18920&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18920&r=support Expected behavior: http://bugs.php.net/fix.php?id=18920&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18920&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18920&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18920&r=globals

« previous php.bugs (#16912) next »