mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
8d00385871
Per RFC https://wiki.php.net/rfc/reclassify_e_strict While reviewing this, found that there are still three E_STRICTs left in libraries - need to discuss those.
31 lines
474 B
PHP
31 lines
474 B
PHP
--TEST--
|
|
Testing __callStatic
|
|
--FILE--
|
|
<?php
|
|
|
|
class foo {
|
|
public function aa() {
|
|
print "ok\n";
|
|
}
|
|
static function __callstatic($a, $b) {
|
|
var_dump($a);
|
|
}
|
|
}
|
|
|
|
foo::aa();
|
|
|
|
$b = 'AA';
|
|
foo::$b();
|
|
|
|
foo::__construct();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: Non-static method foo::aa() should not be called statically in %s on line %d
|
|
ok
|
|
|
|
Deprecated: Non-static method foo::aa() should not be called statically in %s on line %d
|
|
ok
|
|
|
|
Fatal error: Cannot call constructor in %s on line %d
|