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 pcre tests
[hiphop-php.git]
/
hphp
/
test
/
zend
/
bad
/
ext-pcre
/
bug44925.php
blob
3e95a643136663878ba6687d7657caae494574d9
1
<
?php
2
$str1
=
'a'
;
3
$str2
=
'b'
;
4
5
$array
=
Array
(
"1"
,
2
,
3
,
1.1
,
FALSE
,
NULL
,
Array
(),
$str1
, &
$str2
);
6
7
var_dump
(
$array
);
8
9
var_dump
(
preg_grep
(
'/do not match/'
,
$array
));
10
11
$a
=
preg_grep
(
'/./'
,
$array
);
12
var_dump
(
$a
);
13
14
$str1
=
'x'
;
15
$str2
=
'y'
;
16
17
var_dump
(
$a
);
// check if array is still ok
18
19
var_dump
(
$array
);
20
21
?
>