From: fourmi at lfi dot fr Operating system: Linux Fedora core4 PHP version: 5.1.4 PHP Bug Type: *General Issues Bug description: Impossible to declare a 2 dimensions Array
Description: ------------ settype ( $tablo , "array array") ? not good $tablo = array( array() ) ? not good Why need to declare a 2 dim Array ? Because : $tablo[1][1] = "truc"; .. $tablo[2][1] = "machin"; $tablo[2][2] = "chose"; ... array_shift ($tablo[2]) run but give : " PHP Warning: array_shift() The argument should be an array in ..." But $tablo[2] is 1 dim array ! The only workaround is to declare at the begining : $tablo[0] = array() !!! ( $tablo = array(); is not enought ) Expected result: ---------------- No warning -- Edit bug report at http://bugs.php.net/?id=37389&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37389&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37389&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37389&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37389&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37389&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37389&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37389&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37389&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37389&r=support Expected behavior: http://bugs.php.net/fix.php?id=37389&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37389&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37389&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37389&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37389&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37389&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37389&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37389&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37389&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37389&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37389&r=mysqlcfg