From: [EMAIL PROTECTED] Operating system: RedHat 7.2 PHP version: 4.2.3 PHP Bug Type: Arrays related Bug description: Eating the first 4 characters of array variables submitted through forms
Variables are having the first 4 characters chopped off when submitted through a form... Inputs like this: <input type=text name=left[size]> I have a form that looks like this (cut down): ---------------------- <form> $left["size"]: <input type=text name=left[size]> array variable<br> $size: <input type=text name=size> normal variable<br> <input type=submit> </form> <br> <br>$left["size"]: <?php print $left["size"]; ?> <br>$size: <?php print $size; ?> ---------------------- The variable $size works as expected. The variable $left["size"] has the first 4 characters stripped if the variable is 4 or more characters. I enter these: 123 - works as intended 1234 - strips the first 4 characters leaving the variable empty 1234567890 - will strip the first 4 characters leaving the variable as "567890" red - works as intended blue - strips the first 4 characters leaving the variable empty orange - will strip the first 4 characters leaving the variable as "ge" The same problems do NOT occur on Windows XP. I am changed back to PHP 4.2.2 and it was fixed. -- Edit bug report at http://bugs.php.net/?id=20355&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20355&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20355&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20355&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20355&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20355&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20355&r=support Expected behavior: http://bugs.php.net/fix.php?id=20355&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20355&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20355&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20355&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20355&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20355&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20355&r=isapi