From:             d dot rousseau at nnx dot com
Operating system: Linux
PHP version:      5.0.0
PHP Bug Type:     Filesystem function related
Bug description:  popen() buffer too small

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 bug report at http://bugs.php.net/?id=29770&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29770&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29770&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29770&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29770&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29770&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29770&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29770&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29770&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29770&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29770&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29770&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29770&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29770&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29770&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29770&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29770&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29770&r=float

Reply via email to