From: Shaun M. <sh...@ae...> - 2006-08-31 23:18:49
|
On 31 Aug 2006, at 13:35, Matthew McNaney wrote: > I have run across these while testing 1.0 as well. I can't remember > where it popped up. Besides Pear, I am returning a contruction in just > one class (Category.php). > > Is it isolated to 4.4 or is carried into versions higher? > Seems to have been carried forward into PHP 5 too. http://www.php.net/manual/en/language.references.return.php "Note: If you try to return a reference from a function with the syntax: return ($found_var); this will not work as you are attempting to return the result of an expression, and not a variable, by reference. You can only return variables by reference from a function - nothing else. E_NOTICE error is issued since PHP 4.4.0 and PHP 5.1.0 if the code tries to return a dynamic expression or a result of the new operator." But it's not consistent. See http://gallery.menalto.com/node/33076 Ugh! > If it could be widespread, we can can fix the calls in 0.10.3. > > More thoughts? > Yep, it's going to have to be fixed for 0.10.3. Shaun aegis design - http://www.aegisdesign.co.uk aegis hosting - http://www.aegishosting.co.uk |