mirror of
https://github.com/php/php-src.git
synced 2024-12-20 23:39:46 +08:00
18 lines
245 B
Plaintext
18 lines
245 B
Plaintext
|
--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
|