PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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