PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Configuration » Config » Bug #6647

Notice: Only variable references should be returned by reference

Details

Submitted2006-01-31 22:16 UTC
Fromnorbert_m at php dot net
Assignedaashley
StatusClosed
PackageConfig
PHP VersionIrrelevant
OSIrrelevant
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.