ID: 46337 Updated by: [EMAIL PROTECTED] Reported By: webmaster at adriaportal dot com -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: Windows NT 5.2 build 3790 PHP Version: 5.2.6 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 Previous Comments: ------------------------------------------------------------------------ [2008-10-18 17:44:14] webmaster at adriaportal dot com Description: ------------ Error by using method with name use(); !!!! No error with method name changed to _use() !!!! Reproduce code: --------------- <?php class Block { private $block = ""; private $value = ""; private $name = ""; private $out = ""; function __construct($blockName) { $this->name = $blockName; } public function use() { $this->value = $this->block; $this->out = ""; } } ?> Expected result: ---------------- No error. The word USE is very USED by programming. Here is used in a class block of code as name of method, bud here is a conflict with may by documented keyword use in PHP. The namespace use this keyword. Actual result: -------------- Parse error: syntax error, unexpected T_USE, expecting T_STRING in C:\webs\test\bug.php on line 15 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46337&edit=1