PHP 4.0 Bug #9912: exec calls run programs in the document root: different than PHP3

From: Date: Thu, 22 Mar 2001 05:40:01 +0000
Subject: PHP 4.0 Bug #9912: exec calls run programs in the document root: different than PHP3
Groups: php.dev 
Request: Send a blank email to php-dev+get-49710@lists.php.net to get a copy of this message
From: ale@tana.it Operating system: solaris 7 PHP version: 4.0.4pl1 PHP Bug Type: *Directory/Filesystem functions Bug description: exec calls run programs in the document root: different than PHP3 php3 scripts that have lines like exec("mycommand ./myparam.filename etc", &$srtc, &$rtc); are broken in php4, although easily fixed. I was uncertain whether to post this as a bug or just add a note in http://www.php.net/manual/en/migration4.php I decided for the former since I saw there is a VIRTUAL_DIR that might have expanded popen into virtual_popen, and if that stuff works, perhaps next PHP4 release will have it turned on by default. The workaround on unix might be, for each exec call not on the doc root, # cd /my/doc/root # ln -n -s mydir/mysubdir/myparam.filename . it allows taking further action whenever this bug/feature will be fixed/documented -- Edit Bug report at: http://bugs.php.net/?id=9912&edit=1

« previous php.dev (#49710) next »