summaryrefslogtreecommitdiff
path: root/Zend/tests/class_alias_007.phpt
blob: 247398e2ed29f9f299a2c2f63dd73ad2353fac4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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) {
}