#18994 [NEW]: exec() with redirection pipes fails.
| From: | christian at riiser dot se | Date: | Tue, 20 Aug 2002 20:37:47 +0000 |
| Subject: | #18994 [NEW]: exec() with redirection pipes fails. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-17342@lists.php.net to get a copy of this message | ||
From: christian@riiser.se
Operating system: Windows 2000 SP2
PHP version: 4.2.2
PHP Bug Type: IIS related
Bug description: exec() with redirection pipes fails.
Running
exec("cmd.exe /c dir",$result,$status)
gives good output to result array.
running
exec("cmd.exe /c dir>c:\TEMP\test.txt",$result,$status)
fails with access error.
User running website has full access to C:\temp.
----------"------------- read access to cmd.exe.
Loggin on to machine with same user account and opening an cmd windows &
running the full cmd.exe /c etc.etc. works...
It looks like an bug, but I might be very wrong. If so, please to hesitate
to tell me that... :)
/Christian
--
Edit bug report at http://bugs.php.net/?id=18994&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=18994&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=18994&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18994&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18994&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18994&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18994&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18994&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18994&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18994&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18994&r=globals