#18920 [Opn->Fbk]: file_exists() doesn't work with relativ path's

From: Date: Thu, 15 Aug 2002 16:20:34 +0000
Subject: #18920 [Opn->Fbk]: file_exists() doesn't work with relativ path's
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16913@lists.php.net to get a copy of this message
ID: 18920 Updated by: kalowsky@php.net Reported By: jan.lange@artada.de -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: RedHat 7.2 Linux 2.4.18 PHP Version: 4CVS-2002-08-15 New Comment: Can you confirm this with Apache 1.3.x? Previous Comments: ------------------------------------------------------------------------ [2002-08-15 12:14:01] jan.lange@artada.de 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 this bug report at http://bugs.php.net/?id=18920&edit=1

« previous php.bugs (#16913) next »