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
/
bad
/
ext-standard-array
/
bug39576.php
blob
d272cfec6ce61c8980f7f179a394c3a1e7b661bb
1
<
?php
2
3
class
Test
{
4
5
public
$_table
=
''
;
6
public
$_columns
=
array
();
7
public
$_primary
=
array
();
8
9
}
10
11
$test
=
new
Test
();
12
$test
->
name
=
'test'
;
13
$test
->
_columns
[
'name'
] =
new
stdClass
;
14
15
function
test
(
$value
,
$column
, &
$columns
) {}
16
17
array_walk
(
18
get_object_vars
(
$test
),
19
'test'
,
20
$test
->
_columns
21
);
22
23
var_dump
(
$test
);
24
25
array_intersect_key
(
26
get_object_vars
(
$test
),
27
$test
->
_primary
28
);
29
30
echo
"Done
\n
"
;
31
?
>