diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2017-01-30 22:09:32 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-02-03 18:52:57 +0100 |
commit | eaeecc523b665cfa856a376b9c55ca7fc9b7b596 (patch) | |
tree | 522b68f72aed5205fcb899501a4ca2b3acf7e08f /ext/pcre/tests/preg_replace_callback_array.phpt | |
parent | fbeb900be4948d9a1bdc3e139937777534cc27e4 (diff) | |
download | php-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.phpt | 2 |
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); ?> |