|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-21 20:29 UTC] helly@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
Description: ------------ Using the $this->* syntax in a method's argument list produces a parse error at runtime. PHP Version 5.0.0RC3 Reproduce code: --------------- <?php class Test { var $LastResultSet='this Should print'; function Test($Arg = $this->LastResultSet) { print $Arg; } } $ob = &new Test; $ob->Test(); ?> Expected result: ---------------- this Should print Actual result: -------------- Error in C:\Development\0.0.2\0.0.2.0\test.php on line 6: parse error, unexpected T_VARIABLE