php-src/Zend/tests/dynamic_call_001.phpt

18 lines
245 B
Plaintext
Raw Normal View History

2008-05-11 11:15:13 +08:00
--TEST--
Testing dynamic call to constructor (old-style)
--FILE--
<?php
class foo {
public function foo() {
}
}
$a = 'foo';
$a::$a();
?>
--EXPECTF--
Fatal error: Non-static method foo::foo() cannot be called statically in %s on line %d