php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4501 System does not return a string
Submitted: 2000-05-18 15:11 UTC Modified: 2000-05-22 04:21 UTC
From: bboett at erm1 dot u-strasbg dot fr Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Latest CVS (18/05/2000) OS: linux
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: bboett at erm1 dot u-strasbg dot fr
New email:
PHP Version: OS:

 

 [2000-05-18 15:11 UTC] bboett at erm1 dot u-strasbg dot fr
 $query = "ls";
 //$result = passthru($query);
 $result = system($query);
 echo "<P>result is : $result\n";

launching this script issues immediately on the browser the result of the query, whilst the result-var stays empty....
i see no difference between passthru and system :( 
so is there any way i can get a grip on the result string of a shell-command?

BTW i use 4.0rc1-2 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-22 04:21 UTC] jimw at cvs dot php dot net
popen() is what you're after.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 23:00:02 2026 UTC