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
global statement removal: hphp/test [7/x]
[hiphop-php.git]
/
hphp
/
test
/
quick
/
cuf07.php
blob
15b34884b7e4438011980f083b00534ec892f9b0
1
<
?hh
2
function
foo
() {
return
"hello"
; }
3
function
bar
() {
return
"goodbye"
; }
4
function
test
() {
5
if
(
function_exists
(
'foo'
)) {
6
var_dump
(
foo
());
7
}
else
{
8
var_dump
(
0
);
9
}
10
}
11
function
main
() {
12
test
();
13
fb_rename_function
(
'foo'
,
'baz'
);
14
test
();
15
fb_rename_function
(
'bar'
,
'foo'
);
16
test
();
17
}
18
main
();