Bug #9912 Updated: exec calls run programs in the document root: different than PHP3
| From: | sniper@php.net | Date: | Thu, 14 Jun 2001 20:03:17 +0000 |
| Subject: | Bug #9912 Updated: exec calls run programs in the document root: different than PHP3 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56830@lists.php.net to get a copy of this message | ||
ID: 9912
Updated by: sniper
Reported By: ale@tana.it
Old-Status: Open
Status: Feedback
Old-Bug Type: *Directory/Filesystem functions
Bug Type: Program Execution
Operating system:
PHP Version: 4.0.4pl1
Assigned To:
Comments:
Exec() works just fine for me. Could you please
add a complete (but short!) example script?
Previous Comments:
---------------------------------------------------------------------------
[2001-03-22 01:27:00] ale@tana.it
Ok, it wasn't that. I'm sorry. The short/long desc should be
"exec calls run shutdown functions in root", and
A script that has a function with lines like
exec("mycommand ./myparam.filename etc", &$srtc, &$rtc);
and works when called regularly, stops working
if called in a registered shutdown function.
Execution is run in the filesystem root.
PHP3 scripts with such shutdown functions
are broken in php4.
---------------------------------------------------------------------------
[2001-03-22 00:39:49] ale@tana.it
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
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9912&edit=2