ID: 22662 Comment by: spoon at nexdot dot net Reported By: pjaleysen at hotmail dot com Status: Open Bug Type: Program Execution Operating System: Windows XP PHP Version: 4.3.2-RC New Comment:
This seems very close to what im experiencing. I am using php 5.0.0-dev (updated about 2 weeks ago), but the problem has occured for me on 4.x.x versions. I use Windows XP Pro/Windows 2000 Server with my 5.0.0-dev. Apache 2 24 When i use ANY of the MANY methods for passing a system call System Shell_exec Exec `` (backtick) Passthru they all act the same (in this case, as a passthru), UNLESS with a native dos command (which i tried after reading this bug post). The functions such as the 2 exec ones and the backticks should not output anything. I do this: $string=exec/shell_exec/``; when calling something such as ping/dir/echo, or any normal dos command, they work as expected... nothing is output to the browser (or above the php header have you) unless i do an echo $string; When i try to call a program such as gzip, $string has a length of 0 (or null) and the the output from the command appears in my browser (or above PHP headers if run from command line) without echo'ing. Other special parts of each system call functions also do not work, such as exec's array output, which is null unless a native dos command. Previous Comments: ------------------------------------------------------------------------ [2003-03-15 03:42:47] pjaleysen at hotmail dot com Executing Windows-based applications work alright, but not the ones running in DOS. e.g. I am using winzip now instead of pkzip.exe for dos. Because I have to use windows application, it will mke the php code less portable, since I have to use installed software ------------------------------------------------------------------------ [2003-03-13 06:33:40] pjaleysen at hotmail dot com Nope, paths, all of that excluded.I tried to put some details below, comming from http://forums.devshed.com/t55038/s.html (which also deals with the various path issues. Many others also had a look at it). At the very end of the forum there is an assumption that it is a WinXP problem, since win2000 works fine. ------------------------------------------------------------------------ [2003-03-13 06:25:57] [EMAIL PROTECTED] %PATH% issue? (blind guess) ------------------------------------------------------------------------ [2003-03-13 03:01:51] pjaleysen at hotmail dot com HI, I tried it out with PHP Version 4.3.2-RC but the problem remains; native MS-DOS commands work fine, other DOS-applications do not respond. kind regards Patrick ------------------------------------------------------------------------ [2003-03-12 17:05:51] [EMAIL PROTECTED] Yes, but the snapshot is 4.3.2-dev so try it out. We're about to release 4.3.2 soon. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/22662 -- Edit this bug report at http://bugs.php.net/?id=22662&edit=1