#29770 [Opn->Bgs]: popen() buffer too small
| From: | iliaa@php.net | Date: | Sun, 22 Aug 2004 18:00:55 +0000 |
| Subject: | #29770 [Opn->Bgs]: popen() buffer too small | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65061@lists.php.net to get a copy of this message | ||
ID: 29770
Updated by: iliaa@php.net
Reported By: d dot rousseau at nnx dot com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Linux
PHP Version: 5.0.0
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
The limit is imposed by your operating system and not PHP.
Previous Comments:
------------------------------------------------------------------------
[2004-08-20 12:04:00] d dot rousseau at nnx dot com
Description:
------------
When calling popen() with a command line longer than 1024 characters,
the command is truncated without any warning
Reproduce code:
---------------
$command = <some line longer than 1024 characters>;
$handle = popen ($command);
Expected result:
----------------
I would expect at least a warning that says that the command line has
been truncated or error saying that the command line is too long.
This, and an increase to 2048 or 4096, if no general issue about comand
line length.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29770&edit=1