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
/
setop-refleak.php
blob
fe4846309c3516858a471423ff072bf58bbcfa6f
1
<
?php
2
3
class
Dtor
{
4
public function
__destruct
() {
echo
"dtor
\n
"
; }
5
}
6
7
class
Foo
{
public
$bug
; };
8
9
function
main
() {
10
$x
=
new
Foo
;
11
$x
->
bug
=
new
Dtor
;
12
$x
->
bug +
=
12
;
13
var_dump
(
$x
);
14
}
15
16
main
();
17
echo
"done
\n
"
;