summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/preg_replace_callback_array.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2017-01-30 22:09:32 +0100
committerNikita Popov <nikita.ppv@gmail.com>2017-02-03 18:52:57 +0100
commiteaeecc523b665cfa856a376b9c55ca7fc9b7b596 (patch)
tree522b68f72aed5205fcb899501a4ca2b3acf7e08f /ext/pcre/tests/preg_replace_callback_array.phpt
parentfbeb900be4948d9a1bdc3e139937777534cc27e4 (diff)
downloadphp-git-eaeecc523b665cfa856a376b9c55ca7fc9b7b596.tar.gz
Deprecate create_function()
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);
?>