From b889ff309b5e35974ce32a1d34c4064cd0376bb3 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 17 Feb 2018 23:07:07 +0100 Subject: [PATCH] Fix lcfirst() + ucfirst() func info These may return the original string --- ext/opcache/Optimizer/zend_func_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c index b93ec1eb8c..4b1b676ed8 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -348,8 +348,8 @@ static const func_info_t func_infos[] = { FN("substr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), FN("substr_replace", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING), F1("quotemeta", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), - F1("ucfirst", MAY_BE_NULL | MAY_BE_STRING), - F1("lcfirst", MAY_BE_NULL | MAY_BE_STRING), + FN("ucfirst", MAY_BE_NULL | MAY_BE_STRING), + FN("lcfirst", MAY_BE_NULL | MAY_BE_STRING), F1("ucwords", MAY_BE_NULL | MAY_BE_STRING), FN("strtr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), FN("addslashes", MAY_BE_NULL | MAY_BE_STRING), -- 2.40.0