Bug #22 [Com]: names of properties conflict with keywords
| From: | junxing dot lin at yahoo dot com | Date: | Mon, 29 Aug 2011 08:21:51 +0000 |
| Subject: | Bug #22 [Com]: names of properties conflict with keywords | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163055@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=22&edit=1
ID: 22
Comment by: junxing dot lin at yahoo dot com
Reported by: koles at atrey dot karlin dot mff dot cuni dot cz
Summary: names of properties conflict with keywords
Status: Closed
Type: Bug
Package: Parser error
Operating System: Linux 2.0.33 (Redhat 5.0)
PHP Version: 3.0 Latest CVS
Block user comment: N
Private report: N
New Comment:
http://www.chishairstraighteners.net chi flat
iron
http://www.chishairstraighteners.net chi flat
irons
http://www.chishairstraighteners.net chi hair
straightener
http://www.chishairstraighteners.net chi hair
straighteners
Previous Comments:
------------------------------------------------------------------------
[1998-01-29 18:07:03] jim
Fixed in CVS and PHP/3.0b4.
------------------------------------------------------------------------
[1998-01-29 05:24:27] koles at atrey dot karlin dot mff dot cuni dot cz
Following simple script
<?php
class test { var $include; };
$t = new test;
$t->include = "header.php3";
?>
produces "parse error, expecting
STRING' or '{'' or
`'$''".
If this is a feature :), it would be nice to see some error
messege about conflict declaration of $this->include on
line 2.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=22&edit=1