diff options
author | George Peter Banyard <girgias@php.net> | 2020-06-22 15:46:23 +0200 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2020-06-22 15:56:36 +0200 |
commit | 1a2732f9a8b3d62471b360f772b5458f78046f80 (patch) | |
tree | 86d60a6a36ee3a0e6464eb6f1b33a8531594a938 /ext/pcre/php_pcre_arginfo.h | |
parent | 26171c3690874743e1c71766e60248fbd974782f (diff) | |
download | php-git-1a2732f9a8b3d62471b360f772b5458f78046f80.tar.gz |
Use ZPP callable check for preg_replace_callback() $callback argument
Diffstat (limited to 'ext/pcre/php_pcre_arginfo.h')
-rw-r--r-- | ext/pcre/php_pcre_arginfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre_arginfo.h b/ext/pcre/php_pcre_arginfo.h index 31fb0d9df7..52a48798c1 100644 --- a/ext/pcre/php_pcre_arginfo.h +++ b/ext/pcre/php_pcre_arginfo.h @@ -28,7 +28,7 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_preg_replace_callback, 0, 3, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_NULL) ZEND_ARG_INFO(0, regex) - ZEND_ARG_INFO(0, callback) + ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0) ZEND_ARG_INFO(0, subject) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, limit, IS_LONG, 0, "-1") ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, count, "null") |