|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-07-03 23:08 UTC] derick@php.net
[2005-07-03 23:56 UTC] l dot alberton at quipo dot it
[2005-07-18 09:42 UTC] dmitry@php.net
[2005-08-15 12:47 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ When a function which returns a reference calls another function which returns a reference, the engine complains because the outer function does not return a variable reference. It happens with PHP4.4.0RC2 too. Reproduce code: --------------- <?php function & foo() { $var = 'a'; return $var; } function & bar() { return foo(); } $a =& bar(); ?> Expected result: ---------------- no NOTICEs Actual result: -------------- Notice: Only variable references should be returned by reference in test_ref.php on line 8