2011-11-27 12:53:48 +01:00
|
|
|
Invalid namespace names
|
|
|
|
-----
|
|
|
|
<?php namespace self;
|
|
|
|
-----
|
|
|
|
Cannot use "self" as namespace name as it is reserved on line 1
|
|
|
|
-----
|
|
|
|
<?php namespace parent;
|
|
|
|
-----
|
|
|
|
Cannot use "parent" as namespace name as it is reserved on line 1
|
|
|
|
-----
|
|
|
|
<?php namespace static;
|
|
|
|
-----
|
2013-01-15 17:26:20 +01:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING or T_NS_SEPARATOR or '{' on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php use A as self;
|
|
|
|
-----
|
|
|
|
Cannot use "A" as "self" because "self" is a special class name on line 1
|
|
|
|
-----
|
|
|
|
<?php use B as parent;
|
|
|
|
-----
|
|
|
|
Cannot use "B" as "parent" because "parent" is a special class name on line 1
|
|
|
|
-----
|
|
|
|
<?php use C as static;
|
|
|
|
-----
|
2013-01-15 17:26:20 +01:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING on line 1
|