Re: return by reference behaviors in PHP 5
| From: | Andi Gutmans | Date: | Fri, 14 Nov 2003 20:24:45 +0000 |
| Subject: | Re: return by reference behaviors in PHP 5 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-5476@lists.php.net to get a copy of this message | ||
I'll try and take a look at it next week (I had no time this week).
The problem is that there where bugs in the past when returning by reference not variables, which could cause memory corruptions. This is why we didn't allow it. In order not to completely break every script in some cases we can turn a blind eye and allow it (such as return 4;) because it can be dealt with.
Anyway, as I said it's something I need to look into more detail again which I'll do soon.
Andi
At 01:39 PM 11/14/2003 -0500, Daniel Convissor wrote:
Hi Folks: I'm sorry to be a nudge, but am surprised no one has replied to my prior post. Perhaps someone is doing some testing or research before replying? Perhaps it got overlooked? Perhaps everyone is busy and thought someone else would answer? Regardless, it would be great if someone could reply. Thanks, --Dan Message-ID: <20031112174553.GA23321@panix.com> Archive URI: http://marc.theaimsgroup.com/?l=php-dev&m=106866036715442 --FREE scripts that make web and database programming easier http://www.analysisandsolutions.com/software/T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php