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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 17:01:30 2025 UTC