note 15383 deleted from function.exec by danbrown
| From: | danbrown@php.net | Date: | Sun, 04 Jan 2009 16:39:20 +0000 |
| Subject: | note 15383 deleted from function.exec by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-148825@lists.php.net to get a copy of this message | ||
Note Submitter: Yannis dot BRES at cma dot inria dot fr
----
It seems that exec first launches a shell (command processor) under Linux, but not under Windows.
Therefore, redirection tricks like 2>&1 do not work under Windows. In order to force the
launching of an executable through a command processor under Windows, and be able to use
redirection, prepend getenv( "COMSPEC" ) . " /C " to the name of your
executable.