php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30650 windows based clients do not receive full output from shell_exec
Submitted: 2004-11-01 14:02 UTC Modified: 2005-02-21 01:00 UTC
From: eslick dot 1 at osu dot edu Assigned:
Status: No Feedback Package: Program Execution
PHP Version: 4.3.9 OS: win32 only
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-11-01 14:02 UTC] eslick dot 1 at osu dot edu
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 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-21 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 19:01:29 2024 UTC