Bug #10465: absolute path dosen't work with file_exists()

From: Date: Mon, 23 Apr 2001 20:52:22 +0000
Subject: Bug #10465: absolute path dosen't work with file_exists()
Groups: php.dev 
Request: Send a blank email to php-dev+get-52229@lists.php.net to get a copy of this message
From: atom@suspicious.org Operating system: linux 2.4.2 (red-hat 6) i686 PHP version: 4.0.4pl1 PHP Bug Type: Filesystem function related Bug description: absolute path dosen't work with file_exists() file_exists () works fine with reletive paths, but seems to not work with absolute paths, or paths starting with '../' this works fine: -------------------------------------------------------------- if(file_exists(test/123)) { die ("error message"); } this does not work: -------------------------------------------------------------- if(file_exists(/tmp/test/123)) { die ("error message"); } this does not work: -------------------------------------------------------------- if(file_exists(../../tmp/test/123)) { die ("error message"); } thanks... atom -- Edit Bug report at: http://bugs.php.net/?id=10465&edit=1

« previous php.dev (#52229) next »