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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
29 + 34 = ?
Subscribe to this entry?

 
 [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: Fri Mar 29 07:01:28 2024 UTC