php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8732 execution function return always -1
Submitted: 2001-01-16 04:51 UTC Modified: 2001-02-22 18:40 UTC
From: f dot labanvoye at cg70 dot fr Assigned:
Status: Closed Package: Program Execution
PHP Version: 4.0.4pl1 OS: linux 2.2.16
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: f dot labanvoye at cg70 dot fr
New email:
PHP Version: OS:

 

 [2001-01-16 04:51 UTC] f dot labanvoye at cg70 dot fr
I trie to get the result code of exec, system or passthru function but i always get -1 under linux. version of php: 4.0.3pl1 et 4.0.4pl1

<?
passthru("/bin/echo test",$r);
echo $r;

system("/bin/echo test", $r);
echo $r;

?>

I trie under winnt 4 sp6/apache 1.3.14 and it's works fine 
<? 
passthru("echo test", $r;
echo $r;
?>
 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-21 04:44 UTC] cynic@php.net
reclassifying
 [2001-02-22 05:20 UTC] stas@php.net
see #8992
 [2003-04-10 13:11 UTC] dam2000 at katamail dot com
The bug extends to other kernel, 2.4.x end to other 
distributions, like SuSE 7.2!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC