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
Handle this typehints
[hiphop-php.git]
/
hphp
/
test
/
quick
/
pseudomain1.php
blob
59316bce54235e5c855d6fd917c13789125a2509
1
<
?php
2
3
class
C
{
4
public function
__destruct
() {
5
echo
"C::__destruct
\n
"
;
6
global
$obj
;
7
var_dump
(
$obj
);
8
echo
"==========
\n
"
;
9
$obj
=
1
;
10
echo
"C::__destruct done
\n
"
;
11
}
12
}
13
14
class
D
{
15
public function
__destruct
() {
16
echo
"D::__destruct
\n
"
;
17
}
18
}
19
20
$obj
=
new
C
;
21
$obj
=
new
D
;
22
echo
"****
\n
"
;
23
var_dump
(
$obj
);