1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/tests/lang/043.phpt
2007-09-27 00:32:40 +00:00

20 lines
315 B
PHP

--TEST--
Dynamic call for static methods
--FILE--
<?php
class A {
static function foo() { return 'foo'; }
}
$classname = 'A';
$wrongClassname = 'B';
echo $classname::foo()."\n";
echo $wrongClassname::foo()."\n";
?>
===DONE===
--EXPECTF--
foo
Fatal error: Class 'B' not found in %s043.php on line %d