#8732 [Com]: execution function return always -1

From: Date: Thu, 10 Apr 2003 18:11:03 +0000
Subject: #8732 [Com]: execution function return always -1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37533@lists.php.net to get a copy of this message
ID: 8732 Comment by: dam2000 at katamail dot com Reported By: f dot labanvoye at cg70 dot fr Status: Closed Bug Type: Program Execution Operating System: linux 2.2.16 PHP Version: 4.0.4pl1 New Comment: The bug extends to other kernel, 2.4.x end to other distributions, like SuSE 7.2! Previous Comments: ------------------------------------------------------------------------ [2001-02-22 05:20:12] stas@php.net see #8992 ------------------------------------------------------------------------ [2001-01-21 04:44:11] cynic@php.net reclassifying ------------------------------------------------------------------------ [2001-01-16 04:51:47] 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; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=8732&edit=1

« previous php.bugs (#37533) next »