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
import zend standard tests
[hiphop-php.git]
/
hphp
/
test
/
zend
/
good
/
ext-standard-array
/
bug31213.php
blob
6b484d50fa86bfa6c567fb329352d5f57126fb90
1
<
?php
2
function
test
(
$use_extract
) {
3
$a
=
1
;
4
$b
=
1
;
5
6
$arr
=
array
(
7
'_a'
=>
$a
,
8
'_b'
=> &
$b
9
);
10
11
var_dump
(
$a
,
$b
);
12
13
if
(
$use_extract
) {
14
extract
(
$arr
,
EXTR_REFS
);
15
}
else
{
16
$_a
= &
$arr
[
'_a'
];
17
$_b
= &
$arr
[
'_b'
];
18
}
19
20
$_a
++
;
21
$_b
++
;
22
23
var_dump
(
$a
,
$b
,
$_a
,
$_b
,
$arr
);
24
}
25
26
test
(
false
);
27
test
(
true
);
28
29
?
>