Bug #67262 [NEW]: bug in libapache2-mod-php5filter

From: Date: Mon, 12 May 2014 18:52:58 +0000
Subject: Bug #67262 [NEW]: bug in libapache2-mod-php5filter
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185788@lists.php.net to get a copy of this message
From: vladget at gmail dot com Operating system: Ubuntu PHP version: 5.4.28 Package: Apache2 related Bug Type: Bug Bug description:bug in libapache2-mod-php5filter Description: ------------ Hello! php5filter duplicate data in POST from forms used as arrays(http://us2.php.net/manual/en/faq.html.php#faq.html.arrays) Here is simple way to reproduce it: cat f.php <!DOCTYPE html> <html> <head> <meta charset="windows-1251"> </head> <body> <form action="f.php" method="post" enctype="multipart/form-data"> <input type="text" name="a"> <input type="text" name="b[]"> <input type="text" name="b[]"> <button type="submit">submit</button> </form> <?php if (!empty($_POST)) { echo '<pre>'; echo "POST:\n"; var_dump($_POST); echo '</pre>'; } ?> </body> </html> libapache2-mod-php5filter as apache mod_php: ["a"]=> string(1) "1" ["b"]=> array(4) { [0]=> string(1) "2" [1]=> string(1) "3" [2]=> string(1) "2" [3]=> string(1) "3" but it works fine with libapache2-mod-php5 as apache mod_php: array(2) { ["a"]=> string(1) "1" ["b"]=> array(2) { [0]=> string(1) "2" [1]=> string(1) "3" Test script: --------------- <!DOCTYPE html> <html> <head> <meta charset="windows-1251"> </head> <body> <form action="f.php" method="post" enctype="multipart/form-data"> <input type="text" name="a"> <input type="text" name="b[]"> <input type="text" name="b[]"> <button type="submit">submit</button> </form> <?php if (!empty($_POST)) { echo '<pre>'; echo "POST:\n"; var_dump($_POST); echo '</pre>'; } ?> </body> </html> -- Edit bug report at https://bugs.php.net/bug.php?id=67262&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67262&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67262&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67262&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=67262&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=67262&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=67262&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=67262&r=needscript Try newer version: https://bugs.php.net/fix.php?id=67262&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=67262&r=support Expected behavior: https://bugs.php.net/fix.php?id=67262&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=67262&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=67262&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=67262&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67262&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=67262&r=dst IIS Stability: https://bugs.php.net/fix.php?id=67262&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=67262&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=67262&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=67262&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=67262&r=mysqlcfg

« previous php.bugs (#185788) next »