|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: eslick dot 1 at osu dot edu
New email:
PHP Version: OS:


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

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

$output = explode("\n",$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 


Add a Patch

Pull Requests

Add a Pull Request


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 Jul 18 01:01:28 2024 UTC