From:             jon at moozaad dot co dot uk
Operating system: BSD Apache 1.3.29
PHP version:      4.3.4
PHP Bug Type:     Unknown/Other Function
Bug description:  system() unexpect behaviour

Description:
------------
Non-string passed in system() call. I was expecting it to spit out an
error. I didn't notice until I went to add switches to the command.

Same behaviour with exec().
I expect it to be a language syntax problem.

Just incase you're missed it, theres no "" '' `` or $ on the front or
around the first argument.

Reproduce code:
---------------
<? echo "<br>::".system(quota)."::<br>"; ?>

Expected result:
----------------
a warning/error, argument is invalid

Actual result:
--------------
Disk quotas for user wargames (uid 1009): Filesystem usage quota limit
grace files quota limit grace /usr 55580 102400 102400 1167 0 0 
:: /usr 55580 102400 102400 1167 0 0::

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

Reply via email to