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.phpt12
1 files changed, 11 insertions, 1 deletions
diff --git a/ext/pcre/tests/preg_replace_callback_array.phpt b/ext/pcre/tests/preg_replace_callback_array.phpt
index ffefa2cc26..cf872547f3 100644
--- a/ext/pcre/tests/preg_replace_callback_array.phpt
+++ b/ext/pcre/tests/preg_replace_callback_array.phpt
@@ -39,11 +39,21 @@ var_dump(preg_replace_callback_array(
"/c/" => new Rep,
"/a/" => 'b',
"/b/" => function($a) { return "ok"; }), 'a', -1, $count));
-
var_dump($count);
+
+var_dump(preg_replace_callback_array(
+ array('/a/' => 'b', "/c/" => new Rep),
+ array('a', 'c')));
+
?>
--EXPECT--
string(2) "ok"
string(2) "ok"
string(2) "ok"
int(2)
+array(2) {
+ [0]=>
+ string(1) "b"
+ [1]=>
+ string(1) "d"
+}