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
Fix issue with calling a unique, non-persistent method
[hiphop-php.git]
/
hphp
/
test
/
slow
/
cget_quiet.php
blob
3cd46ee1982f69e9393807424fb5af4481c6691e
1
<
?php
2
3
$global_var
=
2
;
4
5
function
test
() {
6
$var1
=
'no_var'
;
7
$var2
=
'var1'
;
8
var_dump
(
$no_var
??
0
);
9
var_dump
(
$var1
??
0
);
10
var_dump
(
$
$var1
??
0
);
11
var_dump
(
$
$var2
??
0
);
12
var_dump
(
$GLOBALS
[
'no_var'
]
??
0
);
13
var_dump
(
$GLOBALS
[
'global_var'
]
??
0
);
14
}
15
16
test
();