FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=11827&edit=1

ID: 11827
Updated by: cweiske@php.net
Reported By: theend at life dot pl
Summary: notice when using arrays (directive[]=value) in
inifiles
Status: Open
-Type: Feature/Change Request
+Type: Bug
Package: Config
Operating System: linux gentoo
Package Version: 1.10.11
PHP Version: 5.1.6
Roadmap Versions:
New Comment:

-Type: Feature/Change Request
+Type: Bug



Previous Comments:
------------------------------------------------------------------------

[2009-12-28 11:28:50] angosso

<?php
// Function to fix up PHP's messing up POST input containing dots, etc.
function getRealPOST(angosso.com) {
$pairs = explode("&", file_get_contents("php://input"));
$vars = array(angosso.com/index2.php);
foreach ($pairs as $pair) {
$nv = explode("=", $pair);
$name = urldecode($nv[0]);
$value = urldecode($nv[1]);
$vars[$angosso.com/index2.php] = $value;
}
return $vars;
}
?>

------------------------------------------------------------------------

[2007-08-13 03:38:58] mad

Description:
------------
When you are using iniFile which looks like

[section]
directive[] = value1
directive[] = value2

Its correctly parsed as an array
array( 'section' => array( 'directive' => array( value1, value2 ) ) )

But there are some notices about converting array to string.

------------------------------------------------------------------------

Search Discussions

  • Cweiske at Dec 19, 2010 at 5:25 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=11827&edit=1

    ID: 11827
    Updated by: cweiske@php.net
    Reported By: theend at life dot pl
    Summary: notice when using arrays (directive[]=value) in
    inifiles
    -Status: Open
    +Status: Closed
    Type: Bug
    Package: Config
    Operating System: linux gentoo
    Package Version: 1.10.11
    PHP Version: 5.1.6
    -Assigned To:
    +Assigned To: cweiske
    Roadmap Versions:
    New Comment:

    -Status: Open
    +Status: Closed
    -Assigned To:
    +Assigned To: cweiske
    This bug has been fixed in SVN.

    If this was a documentation problem, the fix will appear on pear.php.net
    by the end of next Sunday (CET).

    If this was a problem with the pear.php.net website, the change should
    be live shortly.

    Otherwise, the fix will appear in the package's next release.

    Thank you for the report and for helping us make PEAR better.

    Thanks for the patch.


    Previous Comments:
    ------------------------------------------------------------------------

    [2010-12-19 18:07:53] cweiske

    -Type: Feature/Change Request
    +Type: Bug


    ------------------------------------------------------------------------

    [2009-12-28 11:28:50] angosso

    <?php
    // Function to fix up PHP's messing up POST input containing dots, etc.
    function getRealPOST(angosso.com) {
    $pairs = explode("&", file_get_contents("php://input"));
    $vars = array(angosso.com/index2.php);
    foreach ($pairs as $pair) {
    $nv = explode("=", $pair);
    $name = urldecode($nv[0]);
    $value = urldecode($nv[1]);
    $vars[$angosso.com/index2.php] = $value;
    }
    return $vars;
    }
    ?>

    ------------------------------------------------------------------------

    [2007-08-13 03:38:58] mad

    Description:
    ------------
    When you are using iniFile which looks like

    [section]
    directive[] = value1
    directive[] = value2

    Its correctly parsed as an array
    array( 'section' => array( 'directive' => array( value1, value2 ) ) )

    But there are some notices about converting array to string.

    ------------------------------------------------------------------------
  • Cweiske at Dec 19, 2010 at 5:43 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=11827&edit=1

    ID: 11827
    Updated by: cweiske@php.net
    Reported By: theend at life dot pl
    Summary: notice when using arrays (directive[]=value) in
    inifiles
    Status: Closed
    Type: Bug
    Package: Config
    Operating System: linux gentoo
    Package Version: 1.10.11
    PHP Version: 5.1.6
    Assigned To: cweiske
    Roadmap Versions:
    New Comment:

    Storing the array back to ini fail, too - see bug #18124 for that.


    Previous Comments:
    ------------------------------------------------------------------------

    [2010-12-19 18:27:13] cweiske

    -Status: Open
    +Status: Closed
    -Assigned To:
    +Assigned To: cweiske
    This bug has been fixed in SVN.

    If this was a documentation problem, the fix will appear on pear.php.net
    by the end of next Sunday (CET).

    If this was a problem with the pear.php.net website, the change should
    be live shortly.

    Otherwise, the fix will appear in the package's next release.

    Thank you for the report and for helping us make PEAR better.

    Thanks for the patch.

    ------------------------------------------------------------------------

    [2010-12-19 18:07:53] cweiske

    -Type: Feature/Change Request
    +Type: Bug


    ------------------------------------------------------------------------

    [2009-12-28 11:28:50] angosso

    <?php
    // Function to fix up PHP's messing up POST input containing dots, etc.
    function getRealPOST(angosso.com) {
    $pairs = explode("&", file_get_contents("php://input"));
    $vars = array(angosso.com/index2.php);
    foreach ($pairs as $pair) {
    $nv = explode("=", $pair);
    $name = urldecode($nv[0]);
    $value = urldecode($nv[1]);
    $vars[$angosso.com/index2.php] = $value;
    }
    return $vars;
    }
    ?>

    ------------------------------------------------------------------------

    [2007-08-13 03:38:58] mad

    Description:
    ------------
    When you are using iniFile which looks like

    [section]
    directive[] = value1
    directive[] = value2

    Its correctly parsed as an array
    array( 'section' => array( 'directive' => array( value1, value2 ) ) )

    But there are some notices about converting array to string.

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 19, '10 at 5:06p
activeDec 19, '10 at 5:43p
posts3
users1
websitepear.php.net

1 user in discussion

Cweiske: 3 posts

People

Translate

site design / logo © 2022 Grokbase