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
Fix preg_replace with /e not to segfault
[hiphop-php.git]
/
hphp
/
test
/
slow
/
ext_preg
/
preg_replace_callback.php
blob
c7ed2e4a39eb1539094485e007cd61d528e5313c
1
<
?php
2
3
function
preg_replace_callback_main
() {
4
var_dump
(
preg_replace_callback
(
5
'/(a)/'
,
6
function
(
$matches
) {
7
return
str_repeat
(
$matches
[
0
],
500
);
8
},
9
'aaaaaaaaaaaaaaaaaaaa'
10
));
11
}
12
13
preg_replace_callback_main
();