Home » PEAR » PEAR » Bug #362
patch: returning non-variables by reference
Details
| Submitted | 2003-12-05 15:59 UTC |
|---|---|
| From | danielc at panix dot com |
| Assigned | cellog |
| Status | Closed |
| Package | PEAR |
| PHP Version | Irrelevant |
| 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