PEAR is archived and read-only

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

Home » PEAR » PEAR » Bug #362

patch: returning non-variables by reference

Details

Submitted2003-12-05 15:59 UTC
Fromdanielc at panix dot com
Assignedcellog
StatusClosed
PackagePEAR
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2003-12-05 15:59 UTC] danielc at panix dot com

Description:
------------
Returning non-variables in methods that are written to return references causes problems. In PHP 4, memory is corrupted. In PHP 5, this behavior is presently restricted in some cases, which are enforced by fatal errors.

Patches exists at
http://www.analysisandsolutions.com/pear/PEAR.php.references.diff
http://www.analysisandsolutions.com/pear/PEAR.references.diff