Bug #15647 Updated: exec() only executes internal commands

From: Date: Tue, 30 Apr 2002 10:33:38 +0000
Subject: Bug #15647 Updated: exec() only executes internal commands
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-6554@lists.php.net to get a copy of this message
ID: 15647 Updated by: sniper@php.net Reported By: eyal@zvi.org -Status: Open +Status: Bogus Bug Type: Program Execution Operating System: Windows 2000 Server PHP Version: 4.1.1 New Comment: Check the permissions. #16924 is the same issue. Previous Comments: ------------------------------------------------------------------------ [2002-04-30 04:31:57] watford@uiuc.edu I have the exact same problem. PHP.EXE does NOT have this problem but SYSTEM() and EXEC() do when run from Apache. I too have submitted a bug report. ------------------------------------------------------------------------ [2002-02-20 13:14:07] eyal@zvi.org Using any of the external program execution methods (exec(), passthru(), etc.) only work with commands that are internal to the command interpreter. For example passthru("dir") or passthru("time /t") work fine, however passthru("ping.exe localhost") or any other executable file - fails. There is no error displayed, the script just continues execution without any noticeable delay. One funny thing is that if a bogus command is passed, eg. passthru("blah_blah.exe"), a line is added to the Apache error log saying: 'blah_blah.exe' is not recognized as an internal or external command, operable program or batch file. My setup is: Windows 2000 Server, Apache 1.3.17, PHP 4.11 downloaded as binaries, configurations pretty straightforward (safe_mode=Off!). I'll be glad to provide any further information. Eyal Zvi. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15647&edit=1

« previous php.bugs (#6554) next »