|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-16 13:27 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 22:00:02 2025 UTC |
Description: ------------ Hello, while testing this new release i noticed that declaring a public attribute the way is shown in the "Reproduce code" section below no error/exception is issued by the scripting engine's parser. Is this a normal behaviour ? Web server used : Apache v. 2.2.11 PHP version : 5.2.9-1 Thank you. Reproduce code: --------------- <?php error_reporting(E_ALL); class TestClass { public $var1 = YTRTWTRT; // notice !!! the value is not quoted // and no constant with such name exists. } ?> Expected result: ---------------- a parser error issued.