VIRTUAL_DIR problem : initialization of cwd
| From: | Flavien LEBARBE | Date: | Mon, 10 Apr 2000 16:58:02 +0000 |
| Subject: | VIRTUAL_DIR problem : initialization of cwd | ||
| References: | 1 | Groups: | php.dev php.version4 |
| Request: | Send a blank email to php-dev+get-17772@lists.php.net to get a copy of this message | ||
Hi,
Using latest cvs of php4 as an apache module on my linux box,
with VIRTUAL_DIR enabled in php.h :
script :
<?php
echo 'getcwd()='.getcwd()."\n";
?>
output :
getcwd()='/'
I discovered this because a lot of functions (fopen, ImageCreateFromPNG...)
have the virtual_cwd set to /, and therefore relative paths don't
work anymore ! :-(
One has to use absolute paths, which is pretty annoying, and
breaks a lot of scripts (including mine :) ).
(With VIRTUAL_DIR undefined, it works just fine)
Is it meant to be that way ? (ouch !)
Or does it just need some fixing from some php-apache-internals guru ? :)
BTW, since this behaviour is in cvs for a bit more than 24 hours
now, I wonder how many people are actually really testing the
cvs...... :-?
Flavien Lebarbé.
--
Flavien LEBARBE OPEN CARE Support for Freedom
mailto:flebarbe@ocare.com http://www.ocare.com
Tel:+33 141430890 Fax:+33 141430891