mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
1b4134c07b
[DOC] new resolution rules should be documented soon
26 lines
314 B
PHP
26 lines
314 B
PHP
--TEST--
|
|
Overriding internal class with class alias
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace foo;
|
|
|
|
class bar { }
|
|
|
|
class_alias('foo\bar', 'baz');
|
|
|
|
use \baz as stdClass;
|
|
|
|
var_dump(new bar);
|
|
var_dump(new stdClass);
|
|
var_dump(new \baz);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
object(foo\bar)#%d (0) {
|
|
}
|
|
object(foo\bar)#%d (0) {
|
|
}
|
|
object(foo\bar)#%d (0) {
|
|
}
|