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
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.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 18 22:01:28 2024 UTC