summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/preg_replace_callback_array.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pcre/tests/preg_replace_callback_array.phpt')
-rw-r--r--ext/pcre/tests/preg_replace_callback_array.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/tests/preg_replace_callback_array.phpt b/ext/pcre/tests/preg_replace_callback_array.phpt
index 9e9e819134..6780bfba1b 100644
--- a/ext/pcre/tests/preg_replace_callback_array.phpt
+++ b/ext/pcre/tests/preg_replace_callback_array.phpt
@@ -38,7 +38,7 @@ var_dump(preg_replace_callback_array(
'/d/' => array("Foo", "rep"),
"/c/" => new Rep,
"/a/" => 'b',
- "/b/" => create_function('$a', 'return "ok";')), 'a', -1, $count));
+ "/b/" => function($a) { return "ok"; }), 'a', -1, $count));
var_dump($count);
?>