[php-maint] bug in libapache2-mod-php5filter

Ondřej Surý ondrej at sury.org
Mon May 12 12:44:49 UTC 2014


I suggest you fill a bug with PHP. The apache2filter is experimental
SAPI and it might be buggy.


On Fri, May 9, 2014, at 12:12, Vladimir Getmanshchuk wrote:


php5filter duplicate data in POST from forms used as

Here is simple way to reproduce it:
cat f.php

<!DOCTYPE html>
    <meta charset="windows-1251">

<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>

if (!empty($_POST)) {
    echo '<pre>';
    echo "POST:\n";
    echo '</pre>';


libapache2-mod-php5filter as apache mod_php:

  string(1) "1"
  array(4) {
    string(1) "2"
    string(1) "3"
    string(1) "2"
    string(1) "3"

but it works fine with libapache2-mod-php5 as apache mod_php:

array(2) {
  string(1) "1"
  array(2) {
    string(1) "2"
    string(1) "3"
Yours sincerely,
Vladimir Getmanshchuk


pkg-php-maint mailing list

[2]pkg-php-maint at lists.alioth.debian.org


Ondřej Surý <ondrej at sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server


1. http://us2.php.net/manual/en/faq.html.php#faq.html.arrays
2. mailto:pkg-php-maint at lists.alioth.debian.org
3. http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20140512/caca4111/attachment.html>

More information about the pkg-php-maint mailing list