1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00
Files
archived-php-src/Zend/tests/class_alias_003.phpt
2008-05-12 13:31:36 +00:00

23 lines
254 B
PHP

--TEST--
Testing declaration of alias to 'static'
--FILE--
<?php
class bar {
}
class foo {
public function test() {
class_alias('bar', 'static');
return new static;
}
}
$a = new foo;
var_dump($a->test());
?>
--EXPECTF--
object(foo)#%d (0) {
}