2011-11-27 12:53:48 +01:00
|
|
|
Invalid class name
|
|
|
|
-----
|
|
|
|
<?php class self {}
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Cannot use 'self' as class name as it is reserved on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class parent {}
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Cannot use 'parent' as class name as it is reserved on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class static {}
|
|
|
|
-----
|
2013-01-15 17:26:20 +01:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A extends self {}
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Cannot use 'self' as class name as it is reserved on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A extends parent {}
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Cannot use 'parent' as class name as it is reserved on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A extends static {}
|
|
|
|
-----
|
2013-01-15 17:26:20 +01:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING or T_NAMESPACE or T_NS_SEPARATOR on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A implements self {}
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Cannot use 'self' as interface name as it is reserved on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A implements parent {}
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Cannot use 'parent' as interface name as it is reserved on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A implements static {}
|
|
|
|
-----
|
2013-01-15 17:26:20 +01:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING or T_NAMESPACE or T_NS_SEPARATOR on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php interface self {}
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Cannot use 'self' as class name as it is reserved on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php interface parent {}
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Cannot use 'parent' as class name as it is reserved on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php interface static {}
|
|
|
|
-----
|
2013-01-15 17:26:20 +01:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php interface A extends self {}
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Cannot use 'self' as interface name as it is reserved on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php interface A extends parent {}
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Cannot use 'parent' as interface name as it is reserved on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php interface A extends static {}
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING or T_NAMESPACE or T_NS_SEPARATOR on line 1
|