From:             sadun at isikun dot org
Operating system: Windows Server 2003
PHP version:      4.3.3RC3
PHP Bug Type:     IIS related
Bug description:  system function cause header error / IIS6.0

Description:
------------
on iis6.0 when i call NET.exe with system or exec function get faced with
an error and if it's some comlex command it gives "CGI returned bad
header" error.

Reproduce code:
---------------
<pre>
<?

echo exec("NET");

?>

Expected result:
----------------
NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
      HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
      SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]



Actual result:
--------------
NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
      HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
      SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

Content-type: text/html
X-Powered-By: PHP/4.3.3RC2
Set-Cookie: PHPSESSID=ebfd9b5ea0d4316aa9a32b3e1dec41b5; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache

<pre>

-- 
Edit bug report at http://bugs.php.net/?id=25039&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25039&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25039&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25039&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25039&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25039&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25039&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25039&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25039&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25039&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25039&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25039&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25039&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25039&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25039&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25039&r=gnused

Reply via email to