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

Reply via email to