From: tcarter at noggin dot com dot au Operating system: Linux x86 PHP version: 5.0.2 PHP Bug Type: Arrays related Bug description: Misleading warning message for array_combine()
Description: ------------ If array_combine() is called with two empty arrays it produces the following warning "Both parameters should have number of elements at least 0" This warning is misleading, reading the manual entry for array_combine(), it does say that FALSE will be returned if empty arrays are passed, but the warning is confusing and implies that empty arrays are acceptable and that there is some other problem. The warning should be changed to something like "Both parameters should have at least 1 element" Alternatively it would seem more logical (to me anyway) for array_combine(array(), array()) to just return the empty array, but I guess that would break backwards compatibility. -- Edit bug report at http://bugs.php.net/?id=30871&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30871&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30871&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30871&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30871&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30871&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30871&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30871&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30871&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30871&r=support Expected behavior: http://bugs.php.net/fix.php?id=30871&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30871&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30871&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30871&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30871&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30871&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30871&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30871&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30871&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30871&r=mysqlcfg
