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
Updating submodules
[hiphop-php.git]
/
hphp
/
test
/
slow
/
launder_value_inout.php
blob
c050f2e11adc1c69a0b060a1f9a7ba91f737d68d
1
<
?hh
2
3
function
cases
():
vec
<
mixed
> {
4
return
vec
[
5
42
,
6
"foo"
,
7
null
,
8
false
,
9
vec
[
'bar'
],
10
dict
[
7
=>
13
],
11
new
stdClass
(),
12
cases
<>,
13
ExternalThreadEventWaitHandle
::
setOnCreateCallback
<>,
14
stdClass
::
class
,
15
];
16
}
17
18
<<
__EntryPoint
>>
19
function
main
():
void
{
20
foreach
(
cases
()
as
$case
) {
21
__hhvm_intrinsics\
launder_value_inout
(
inout
$case
);
22
var_dump
(
$case
);
23
}
24
}