#18920 [Opn]: file_exists() doesn't work with relativ path's
| From: | kalowsky@php.net | Date: | Fri, 16 Aug 2002 14:00:36 +0000 |
| Subject: | #18920 [Opn]: file_exists() doesn't work with relativ path's | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17013@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
-Bug Type: Filesystem function related
+Bug Type: Apache2 related
Operating System: RedHat 7.2 Linux 2.4.18
PHP Version: 4CVS-2002-08-15
New Comment:
Changing to an Apache2 bug
Previous Comments:
------------------------------------------------------------------------
[2002-08-16 09:58:41] jan.lange@artada.de
Hi!
I have installed Apache 1.3.26, and recompiled
php4-200208150600 with the same options.
Than I modified little bit my Apache2 httpd.conf
File so that it is working with Apache 1.3.x.
After that I have tested the file_exists() function with relativ
path's, and now it works.
Is it now a Apache2 bug or a PHP Apache2 API (Filter) bug?
Next I will test it with Apache 2.0.39 and PHP-STABLE snapshot
(4.2.3-dev).
Greetings
Jan
------------------------------------------------------------------------
[2002-08-15 12:58:22] kalowsky@php.net
If you could test with it, it would be appriciated. Please realize
that PHP's support of Apache2 is experimental, and is not assured to
work at this time.
------------------------------------------------------------------------
[2002-08-15 12:46:32] jan.lange@artada.de
No, I can't it!
I have only Apache 2.0.40 installed.
Shall I install 1.3.x ?
I haven't many time for the next days, I can test it
on Monday, not sooner. Because my httpd.conf config-file is specialised
for apache2, and won't work with apache 1.3 without some modifications.
------------------------------------------------------------------------
[2002-08-15 12:20:34] kalowsky@php.net
Can you confirm this with Apache 1.3.x?
------------------------------------------------------------------------
[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