|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-09-06 00:49 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 15:00:02 2025 UTC |
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].')';