#24388 [Bgs]: Redefining class properties
| From: | xbite at exonium dot net | Date: | Sun, 29 Jun 2003 18:08:19 +0000 |
| Subject: | #24388 [Bgs]: Redefining class properties | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42744@lists.php.net to get a copy of this message | ||
ID: 24388
User updated by: xbite at exonium dot net
Reported By: xbite at exonium dot net
Status: Bogus
Bug Type: Class/Object related
Operating System: Linux - Slackware 8.0
PHP Version: 4.3.2
New Comment:
sorry for bad code -- not "class Class", try something else insted of
"Class".
Previous Comments:
------------------------------------------------------------------------
[2003-06-29 13:00:18] derick@php.net
It does:
[derick@kossu derick]$ php-4.3.3RC1
<?php
class Class {
var $property = "some value";
var $property = "some other value";
}
?>
PHP Parse error: parse error, expecting `T_STRING' in - on line 2
------------------------------------------------------------------------
[2003-06-29 12:52:56] xbite at exonium dot net
Description:
------------
If you redefine class property, you don't get any errors.
Reproduce code:
---------------
class Class {
var $property = "some value";
var $property = "some other value";
}
Expected result:
----------------
PHP should generate an error.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24388&edit=1