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
Happy New Year (again)
[hiphop-php.git]
/
hphp
/
test
/
slow
/
constant
/
cns-autoload.php
blob
3a265f47068a6568dca9cc510206293d4c50a5f4
1
<
?php
2
3
// Copyright 2004-2014 Facebook. All Rights Reserved.
4
5
function
def
() {
6
define
(
'FOO'
,
1
);
7
}
8
function
show
(
$a
,
$b
) {
9
var_dump
(
$a
,
$b
);
10
}
11
function
test
() {
12
show
(
FOO
,
FOO
);
13
}
14
15
HH\autoload_set_paths
(
array
(
'constant'
=>
array
(),
16
'failure'
=>
'def'
),
""
);
17
18
test
();