mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
19 lines
211 B
Plaintext
19 lines
211 B
Plaintext
|
--TEST--
|
||
|
Testing instantiation using namespace:: prefix
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
namespace foo;
|
||
|
|
||
|
class bar {
|
||
|
}
|
||
|
|
||
|
class_alias('foo\bar', 'foo\baz');
|
||
|
|
||
|
var_dump(new namespace\baz);
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
object(foo\bar)#%d (0) {
|
||
|
}
|