2011-11-27 12:53:48 +01:00
|
|
|
Some special methods cannot be static
|
|
|
|
-----
|
|
|
|
<?php class A { static function __construct() {} }
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Constructor __construct() cannot be static on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A { static function __destruct() {} }
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Destructor __destruct() cannot be static on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A { static function __clone() {} }
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Clone method __clone() cannot be static on line 1
|
|
|
|
-----
|
|
|
|
<?php class A { static function __CONSTRUCT() {} }
|
|
|
|
-----
|
|
|
|
Constructor __CONSTRUCT() cannot be static on line 1
|
|
|
|
-----
|
|
|
|
<?php class A { static function __Destruct() {} }
|
|
|
|
-----
|
|
|
|
Destructor __Destruct() cannot be static on line 1
|
|
|
|
-----
|
|
|
|
<?php class A { static function __cLoNe() {} }
|
|
|
|
-----
|
|
|
|
Clone method __cLoNe() cannot be static on line 1
|