#35398 [Opn]: php's exec() requires a shell

From: Date: Fri, 25 Nov 2005 17:25:43 +0000
Subject: #35398 [Opn]: php's exec() requires a shell
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88998@lists.php.net to get a copy of this message
ID: 35398 User updated by: szo at szo dot hu Reported By: szo at szo dot hu Status: Open Bug Type: Unknown/Other Function -Operating System: all +Operating System: posix PHP Version: 5.1.0 New Comment: changed os to posix Previous Comments: ------------------------------------------------------------------------ [2005-11-25 18:24:24] szo at szo dot hu Description: ------------ I use php in a chroot()-et environment, and I can't use exec() unless I provide a shell in the chroot as well, which lowers it's security a bit. The exec() requires a shell because it's implemented using popen(). I think it should be possible to aboid popen and use dup() instead. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35398&edit=1

« previous php.bugs (#88998) next »