Edit report at http://bugs.php.net/bug.php?id=52439&edit=1
ID: 52439 Updated by: [email protected] Reported by: shiranai7 at hotmail dot com Summary: Static and non-static variable name collision in a class declaration Status: Bogus Type: Bug Package: Class/Object related Operating System: Win PHP Version: 5.3.3 New Comment: This is well documented and the comment is a standard comment to mark bug regarding documented features as "not a bug". I'm sorry if the text looks offending but it is not, even if the word "bogus" could be badly misinterpreted. Also please understand that it is not a support channel and we have many bugs to process, that's why pre defined messages exist. Previous Comments: ------------------------------------------------------------------------ [2010-07-25 18:38:17] shiranai7 at hotmail dot com I understand, thank you for your answer. This is what the first answer should have been like. I'm sorry but this one is about hundred times more valuable than the other which very nicely says "you are noob and go whine somewhere else". ------------------------------------------------------------------------ [2010-07-25 18:31:54] [email protected] Do any of the scripting languages support static class var separation? I can't think of any that do off the top of my head, so I am surprised that you would expect this from a scripting language. ------------------------------------------------------------------------ [2010-07-25 18:25:27] [email protected] We have one property table per class. And a property in a class can have a static flag, so there can't be two of that name, there are things like reflection which depend on this. This is expected and won't change. Sorry if you don't like it. ------------------------------------------------------------------------ [2010-07-25 18:17:07] shiranai7 at hotmail dot com Not a bug? What is this supposed to be then? Correct behavior? I think not. This is not a "support question". I am just reporting that PHP behaves wrong - treats static and non-static variable as one in first example. Do I really have to explain that static variable is not THE SAME as non-static variable and that I am NOT redeclaring anything? Duh. And - if you are about to reply with another silly predefined answer then better don't answer at all, thank you. ------------------------------------------------------------------------ [2010-07-25 17:50:44] [email protected] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=52439 -- Edit this bug report at http://bugs.php.net/bug.php?id=52439&edit=1
