PHP 4.0 Bug #8212: If the result of an exec() command is one character the result is empty.
| From: | dustin at intrcomm dot net | Date: | Tue, 12 Dec 2000 18:33:35 +0000 |
| Subject: | PHP 4.0 Bug #8212: If the result of an exec() command is one character the result is empty. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41052@lists.php.net to get a copy of this message | ||
From: dustin@intrcomm.net
Operating system: RedHat/Linux 6.2
PHP version: 4.0.2
PHP Bug Type: Unknown/Other Function
Bug description: If the result of an exec() command is one character the result is empty.
echo "test = (" . exec("echo -n 'A'",$tmp) . ")";
echo "<br>test2 = (" . $tmp[0] . ")";
I get the following results
test = ()
test2 = (A)
--
Edit Bug report at: http://bugs.php.net/?id=8212&edit=1