From: [EMAIL PROTECTED] Operating system: Windows 2000 Server PHP version: 4.1.1 PHP Bug Type: Program Execution Bug description: exec() only executes internal commands
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 bug report at http://bugs.php.net/?id=15647&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15647&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15647&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15647&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15647&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15647&r=support Expected behavior: http://bugs.php.net/fix.php?id=15647&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15647&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15647&r=submittedtwice