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
sync the repo
[hiphop-php.git]
/
hphp
/
test
/
zend
/
good
/
tests
/
lang
/
bug7515.php
blob
50191daa35b50575954337333a16a93488116a2d
1
<
?hh
2
class
obj
{
3
function
method
() :
mixed
{}
4
}
5
<<
__EntryPoint
>>
6
function
main
() :
mixed
{
7
$o
=
new
stdClass
();
8
$o
->
root
=
new
obj
();
9
10
ob_start
();
11
var_dump
(
$o
);
12
$x
=
ob_get_contents
();
13
ob_end_clean
();
14
15
$o
->
root
->
method
();
16
17
ob_start
();
18
var_dump
(
$o
);
19
$y
=
ob_get_contents
();
20
ob_end_clean
();
21
if
(
$x
==
$y
) {
22
print
"success"
;
23
}
else
{
24
print
"failure
25
x=
$x
26
y=
$y
27
"
;
28
}
29
}