com php-src: Fix func info for chop(): ext/opcache/Optimizer/ze nd_func_info.c
| From: | Nikita Popov | Date: | Fri, 30 Aug 2019 09:18:47 +0000 |
| Subject: | com php-src: Fix func info for chop(): ext/opcache/Optimizer/ze nd_func_info.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108156@lists.php.net to get a copy of this message | ||
Commit: 69cf5352617909b5c82c862bcfef775f058987c5
Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 30 Aug 2019 11:18:47 +0200
Parents: be8247101deee46685ef5f80b40051a7c96535ec
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=69cf5352617909b5c82c862bcfef775f058987c5
Log:
Fix func info for chop()
chop() is an alias of rtrim() and may return copied strings, so
should use FN.
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 da1564c..41b44ee 100644
--- a/ext/opcache/Optimizer/zend_func_info.c
+++ b/ext/opcache/Optimizer/zend_func_info.c
@@ -220,6 +220,7 @@ static const func_info_t func_infos[] = {
FN("addslashes", MAY_BE_STRING),
F1("addcslashes", MAY_BE_STRING),
FN("rtrim", MAY_BE_STRING),
+ FN("chop", MAY_BE_STRING),
FN("str_replace", MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY |
MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY | MAY_BE_ARRAY_OF_OBJECT),
FN("str_ireplace", MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY |
MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY | MAY_BE_ARRAY_OF_OBJECT),
F1("str_repeat", MAY_BE_NULL | MAY_BE_STRING),
@@ -244,7 +245,6 @@ static const func_info_t func_infos[] = {
F0("parse_str", MAY_BE_NULL),
F1("str_getcsv", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY |
MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_NULL | MAY_BE_ARRAY_OF_STRING),
F1("str_pad", MAY_BE_NULL | MAY_BE_STRING),
- F1("chop", MAY_BE_STRING),
F1("strchr", MAY_BE_FALSE | MAY_BE_STRING),
F1("sprintf", MAY_BE_FALSE | MAY_BE_STRING),
F0("printf", MAY_BE_FALSE | MAY_BE_LONG),