AndreyKis / php-llk-parser-core

Automatically exported from code.google.com/p/php-llk-parser-core
0 stars 0 forks source link

Keywords as identifiers are not allowed #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The keywords as the property names, constant names and function names are not 
allowed though it is correct in the standard PHP parser.

Here are the code snippets which cause parse errors (from ZF sources):

1.
class Zend_Ldap_Converter
{
//<skipped>
    const BOOLEAN          = 1;
//<skipped>

2.
  if (isset($info->abstract) && $info->abstract && method_exists($route, 'isAbstract')) {

3.
    public static function string($filter)
    {
        return new Zend_Ldap_Filter_String($filter);
    }

Original issue reported on code.google.com by const.nekrasoff on 18 Feb 2012 at 9:24

GoogleCodeExporter commented 8 years ago
Issue 3 has been merged into this issue.

Original comment by const.nekrasoff on 13 Mar 2012 at 7:54

GoogleCodeExporter commented 8 years ago
Fixed at revision 22.

Checked on phpBB3 and ZF1.11 sources.

Original comment by const.nekrasoff on 15 Mar 2012 at 10:47