php-src/Zend/tests/dynamic_call_001.phpt
2008-05-11 03:50:28 +00:00

18 lines
245 B
PHP

--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