Home » Configuration » Config » Bug #6647
Notice: Only variable references should be returned by reference
Details
| Submitted | 2006-01-31 22:16 UTC |
|---|---|
| From | norbert_m at php dot net |
| Assigned | aashley |
| Status | Closed |
| Package | Config |
| PHP Version | Irrelevant |
| OS | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2006-01-31 22:16 UTC] norbert_m at php dot net
Description:
------------
Notice: Only variable references should be returned by reference in [...]/pear/php/Config/Container.php on line 295
Functions like &getItem should return null instead of false in cases when they don't return a real reference, to avoid such notices.
Config_Container::&getItem() is one of the functions which is affected but there might be more.
This issue occured in many other packages. See Bug #4799 (HTML_QuickForm) and Bug #4870 (SOAP) for example.
The solution is to replace return false => return null in all functions which should return a reference (&).
Expected result:
----------------
everything works fine
Actual result:
--------------
notices are displayed
[2006-01-31 23:27 UTC] aashley at php dot net
This bug has been fixed in CVS.
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.