Bug #4501: System does not return a string
| From: | bboett at erm1 dot u-strasbg dot fr | Date: | Thu, 18 May 2000 13:11:20 +0000 |
| Subject: | Bug #4501: System does not return a string | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18915@lists.php.net to get a copy of this message | ||
From: bboett@erm1.u-strasbg.fr
Operating system: linux
PHP version: 3.0 Latest CVS (18/05/2000)
PHP Bug Type: Misbehaving function
Bug description: System does not return a string
$query = "ls";
//$result = passthru($query);
$result = system($query);
echo "<P>result is : $result\n";
launching this script issues immediately on the browser the result of the query, whilst the
result-var stays empty....
i see no difference between passthru and system :(
so is there any way i can get a grip on the result string of a shell-command?
BTW i use 4.0rc1-2