From:             eslick dot 1 at osu dot edu
Operating system: Varied
PHP version:      4.3.9
PHP Bug Type:     Unknown/Other Function
Bug description:  windows based clients do not receive full output from shell_exec

Description:
------------
Running php4.3.9 on IIS 6 Win2k3.  Same issue reproducable on Linux Apache
set.  Any *nix based client is able to correctly run a shell_exec script
and receive full output.  Any windows based client, regardless of browser,
fails with only a partial set of the data returned.

Reproduce code:
---------------
$t_cmd = "netsh dhcp server 10.1.1.1 dump";




$output = shell_exec($t_cmd) or die ("could not get dhcp");



$output = explode("\n",$output);



print_r($output);

Expected result:
----------------
Array of entire dhcp dump.  Does work from *nix based clients.

Actual result:
--------------
Only first 3-4 parts of array are returned on Windows based clients 

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

Reply via email to