mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +08:00
20 lines
227 B
PHP
20 lines
227 B
PHP
--TEST--
|
|
Testing class_alias() using autoload
|
|
--FILE--
|
|
<?php
|
|
|
|
function __autoload($a) {
|
|
class foo { }
|
|
}
|
|
|
|
class_alias('foo', 'bar', 1);
|
|
|
|
var_dump(new foo, new bar);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
object(foo)#%d (0) {
|
|
}
|
|
object(foo)#%d (0) {
|
|
}
|