com php-src: Remove redundant func info for ctype/bc/fileinfo: ext/opcache/Optimizer/zend_func_info.c
| From: | Nikita Popov | Date: | Mon, 07 Oct 2019 08:15:50 +0000 |
| Subject: | com php-src: Remove redundant func info for ctype/bc/fileinfo: ext/opcache/Optimizer/zend_func_info.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108750@lists.php.net to get a copy of this message | ||
Commit: d0f7a7e7c9060d1e0a2873df269e483ea91fdf8f
Author: Tyson Andre <tysonandre775@hotmail.com> Sun, 6 Oct 2019 13:37:10 -0400
Committer: Nikita Popov <nikita.ppv@gmail.com> Mon, 7 Oct 2019 10:15:50 +0200
Parents: 3c2ba240a911085f8242ebe55ed4b37fd7315de6
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d0f7a7e7c9060d1e0a2873df269e483ea91fdf8f
Log:
Remove redundant func info for ctype/bc/fileinfo
This is limited to types that aren't reference counted.
I assume the info that there is exactly one reference
should be preserved (e.g. for bcsqrt)
Closes GH-4786.
Changed paths:
M ext/opcache/Optimizer/zend_func_info.c
Diff:
diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c
index dd7b823a9e5..4df8c01b0bb 100644
--- a/ext/opcache/Optimizer/zend_func_info.c
+++ b/ext/opcache/Optimizer/zend_func_info.c
@@ -1137,8 +1137,6 @@ static const func_info_t func_infos[] = {
F1("bcpowmod", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
F1("bcpow", MAY_BE_STRING),
F1("bcsqrt", MAY_BE_NULL | MAY_BE_STRING),
- F0("bccomp", MAY_BE_LONG),
- F0("bcscale", MAY_BE_LONG),
/* ext/exif */
F1("exif_tagname", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
@@ -1172,23 +1170,8 @@ static const func_info_t func_infos[] = {
F1("bind_textdomain_codeset", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
#endif
- /* ext/ctype */
- F0("ctype_alnum", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("ctype_alpha", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("ctype_cntrl", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("ctype_digit", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("ctype_lower", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("ctype_graph", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("ctype_print", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("ctype_punct", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("ctype_space", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("ctype_upper", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("ctype_xdigit", MAY_BE_FALSE | MAY_BE_TRUE),
-
/* ext/fileinfo */
F1("finfo_open", MAY_BE_FALSE | MAY_BE_RESOURCE),
- F0("finfo_close", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("finfo_set_flags", MAY_BE_FALSE | MAY_BE_TRUE),
F1("finfo_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
F1("finfo_buffer", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
F1("mime_content_type", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),