ID: 29770 Comment by: mr_W at mindnever dot org Reported By: d dot rousseau at nnx dot com Status: Bogus Bug Type: Filesystem function related Operating System: Linux PHP Version: 5.0.0 New Comment:
Actually not, this limit (at least in 4.3.9) is imposed by using static buffer char buf[1024] when safe_mode is set to 'on'. check out ext/standard/file.c Previous Comments: ------------------------------------------------------------------------ [2004-08-22 20:00:54] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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
