php-src/Zend/tests/call_static_006.phpt
Nikita Popov 8d00385871 Reclassify E_STRICT notices
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.
2015-04-01 11:17:55 +02:00

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