|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-12 23:22 UTC] derick@php.net
[2005-06-13 00:36 UTC] sailormax at gmail dot com
[2005-06-13 00:47 UTC] helly@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 23 11:00:01 2025 UTC |
Description: ------------ class member function do not accept bind to any variable address of $this. I do not want edit "$this"! I want work with it by another variable! (zend.ze1_compatibility_mode = On) Reproduce code: --------------- <? class foo { function test($obj = '') { if ($obj == '') $obj =& $this; } } ?> Expected result: ---------------- everything must be ok Actual result: -------------- Fatal error: Cannot re-assign $this in index.php on line 6