Home » Configuration » Config » Bug #1785
php notice in IniCommented
Details
| Submitted | 2004-07-04 15:22 UTC |
|---|---|
| From | jam at zoidtechnologies dot com |
| Assigned | mansion |
| Status | Closed |
| Package | Config |
| PHP Version | 4.3.6 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-07-04 15:22 UTC] jam at zoidtechnologies dot com
Description:
------------
version is 1.10.2 stable.
I am using searchPath to look for an item I know does not exist.
Reproduce code:
---------------
$ini = new Config();
$conf = &$ini->parseConfig("conf.ini", "inicommented");
$dsnob = &$conf->searchPath(array("foobarr"));
[2004-07-04 16:24 UTC] jam at zoidtechnologies dot com
The specific notice is: "Undefined offset: 0 in /usr/share/pear/Config/Container/IniCommented.php on line 163"
[2004-08-07 09:03 UTC] bmansion at mamasam dot com
This bug has been fixed in CVS.
In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.
In case this was a pear.php.net website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PEAR better.
Your description of the bug is totally wrong and has nothing to do with searchPath(). The notice was in IniCommented not in Container. Anyway, this is now fixed.