From: [EMAIL PROTECTED] Operating system: all PHP version: 6CVS-2007-10-29 (CVS) PHP Bug Type: Arrays related Bug description: Missing space in error messages array min and max
Description: ------------ In the array functions min and max implemented in ext/standard/array.c there are 4 error messages which run together "At" and "least". For example one message is as follows: "Atleast one value should be passed" The problem occurs four times in array.c. I thought twice about raising a bug for something as trivial as thus but when I saw the recent work to sort out the extra periods "." in error messages I realised that it would be appropriate to raise this. Once this change has been made the tests I committed for min and max can be altered to require the space. I'm happy to do this. The tests are currently written to pass with or without the space. Reproduce code: --------------- <?php min(); ?> Expected result: ---------------- Warning: min(): At least one value should be passed in %s on line %d Actual result: -------------- Warning: min(): Atleast one value should be passed %s on line %d -- Edit bug report at http://bugs.php.net/?id=43125&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43125&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43125&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43125&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43125&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43125&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43125&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43125&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43125&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43125&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43125&r=support Expected behavior: http://bugs.php.net/fix.php?id=43125&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43125&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43125&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43125&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43125&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43125&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43125&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43125&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43125&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43125&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43125&r=mysqlcfg