ID: 29308 Updated by: [EMAIL PROTECTED] Reported By: louis at mulliemedia dot com -Status: Open +Status: Bogus Bug Type: Class/Object related Operating System: Windows XP PHP Version: 5.0.0 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php You can only use constants as default values. Previous Comments: ------------------------------------------------------------------------ [2004-07-21 18:19:00] louis at mulliemedia dot com 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29308&edit=1