Re: PHP 4.0 Bug #8732: execution function return always -1
| From: | Edin Kadribasic | Date: | Tue, 16 Jan 2001 23:09:11 +0000 |
| Subject: | Re: PHP 4.0 Bug #8732: execution function return always -1 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-44288@lists.php.net to get a copy of this message | ||
I've noticed the same problem. The strange thing is that it happens only
on one out of our 5 production and 2 development machine that have the
exact same configuration. I'm trying to see what makes this one
different. Btw. in my case the system command does not get executed.
Edin
On 16 Jan 2001 f.labanvoye@cg70.fr wrote:
> From: f.labanvoye@cg70.fr
> Operating system: linux 2.2.16
> PHP version: 4.0.4pl1
> PHP Bug Type: Unknown/Other Function
> Bug description: execution function return always -1
>
> 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;
> ?>
>
>
>
>