Skip to content

Commit 69cf535

Browse files
committed
Fix func info for chop()
chop() is an alias of rtrim() and may return copied strings, so should use FN.
1 parent be82471 commit 69cf535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/Optimizer/zend_func_info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ static const func_info_t func_infos[] = {
220220
FN("addslashes", MAY_BE_STRING),
221221
F1("addcslashes", MAY_BE_STRING),
222222
FN("rtrim", MAY_BE_STRING),
223+
FN("chop", MAY_BE_STRING),
223224
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),
224225
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),
225226
F1("str_repeat", MAY_BE_NULL | MAY_BE_STRING),
@@ -244,7 +245,6 @@ static const func_info_t func_infos[] = {
244245
F0("parse_str", MAY_BE_NULL),
245246
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),
246247
F1("str_pad", MAY_BE_NULL | MAY_BE_STRING),
247-
F1("chop", MAY_BE_STRING),
248248
F1("strchr", MAY_BE_FALSE | MAY_BE_STRING),
249249
F1("sprintf", MAY_BE_FALSE | MAY_BE_STRING),
250250
F0("printf", MAY_BE_FALSE | MAY_BE_LONG),

0 commit comments

Comments
 (0)