Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.12

Bug #11827 notice when using arrays (directive[]=value) in inifiles
Submitted: 2007-08-13 07:38 UTC
From: mad Assigned: cweiske
Status: Closed Package: Config (version 1.10.11)
PHP Version: 5.1.6 OS: linux gentoo
Roadmaps: (Not assigned)    
Subscription  


 [2007-08-13 07:38 UTC] mad (Mateusz Dykszak)
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.

Comments

 [2009-12-28 16:28 UTC] angosso (Mbiama Roger)
<?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; } ?>
 [2010-12-19 23:07 UTC] cweiske (Christian Weiske)
-Type: Feature/Change Request +Type: Bug
 [2010-12-19 23:27 UTC] cweiske (Christian Weiske)
-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 23:45 UTC] cweiske (Christian Weiske)
Storing the array back to ini fail, too - see bug #18124 for that.