ID: 49478
Updated by: paj...@php.net
Reported By: elmue at gmx dot de
-Status: Open
+Status: Feedback
Bug Type: Program Execution
Operating System: Windows
PHP Version: 6SVN-2009-09-06 (snap)
Assigned To: pajoye
New Comment:
Try with a recent snap please
Previous Comments:
[2009-09-22 14:06:37] paj...@php.net
Windows, today snaps.
[2009-09-22 13:46:42] elmue at gmx dot de
Hello
On which PHP6 version did you test it ?
Did you test on Windows ?
I used version build Sep 3 2009 21:23:55
[2009-09-22 08:41:40] paj...@php.net
I can't reproduce it with php6 neither with 5.3 or 5.2 in CLI or FCGI.
Can you try it with CLI/CGI too please?
[2009-09-22 05:18:15] ian at iglou dot com
Also broken in PHP Version 5.2.10; safe mode off.
An earlier version (no record of which) did work when used thus to get
a Windows dvd volume label:
if (preg_match('#Volume in drive [a-zA-Z]* is (.*)\n#i',
shell_exec('dir '.$drive.':'), $m)) {
$volname = ' ('.$m[1].')';
[2009-09-06 00:49:59] elmue at gmx dot de
Description:
On PHP 6 VC 6 from 3.sept.2009 the shell_exec command is broken.
Tested on Xampp on Windows XP with Apache 2.2.9.
Whatever you put into shell_exec e.g.
shell_exec("dir C:\\")
produces a
Warning shell_exec() [function.shell-exec]: Unable to execute 'dir
c:\'
The same script works fine on PHP 5
--
Edit this bug report at http://bugs.php.net/?id=49478&edit=1