repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Refactor the parsing and processing of configuration options ... just a bit ...
[hiphop-php.git]
/
hphp
/
test
/
slow
/
autoload
/
spl_autoload_chained3.php
blob
d0a8231648e8fd5c1d88ae1f17b12c035bd4b05b
1
<
?php
2
3
spl_autoload_register
(
'my_autoload'
);
4
5
function
my_autoload
(
$class
) {
6
var_dump
(
$class
);
7
if
(
$class
==
'C'
)
8
$test
=
class_exists
(
'A'
);
9
if
(
$class
==
'A'
) {
10
class
A
{
11
public
$var
=
'class A'
;
12
};
13
$b
=
new
B
();
14
}
15
if
(
$class
==
'B'
) {
16
class
B
{
17
public
$var
=
'class B'
;
18
};
19
$c
=
new
C
();
20
}
21
if
(
$class
==
'C'
) {
22
class
C
{
23
public
$var
=
'class C'
;
24
};
25
}
26
}
27
28
$a
=
new
A
();