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
/
variadic_byref1.php
blob
d607fc9184bb26ca5fc9081e50fee99dc8f5015a
1
<
?php
2
3
function
variadic_by_ref
(&...
$args
) {
4
for
(
$i
=
0
;
$i
<
count
(
$args
);
++
$i
) {
$args
[
$i
]
++
; }
5
}
6
7
function
main
() {
8
$a
=
10
;
9
$b
=
20
;
10
variadic_by_ref
(&
$a
, &
$b
);
11
var_dump
(
$a
,
$b
);
12
}
13
main
();