[PHP-DEV] VIRTUAL_DIR problem : initialization of cwd From: Flavien LEBARBE (flebarbe <email protected>)
Date: 04/10/00

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 <email protected>           http://www.ocare.com
Tel:+33 141430890                      Fax:+33 141430891

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>