php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22 names of properties conflict with keywords
Submitted: 1998-01-29 05:24 UTC Modified: 1998-01-29 18:07 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: koles at atrey dot karlin dot mff dot cuni dot cz Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0 Latest CVS OS: Linux 2.0.33 (Redhat 5.0)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: koles at atrey dot karlin dot mff dot cuni dot cz
New email:
PHP Version: OS:

 

 [1998-01-29 05:24 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-01-29 18:07 UTC] jim
Fixed in CVS and PHP/3.0b4.
 [2020-01-24 13:00 UTC] nikic@php.net
Automatic comment from SVN on behalf of nikic
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=349002
Log: Clarify that it's safe to reuse an FFI scope.

Patch by Crell.

Closes php/doc-en#22.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Sep 25 07:01:23 2020 UTC