com php-src: Fix print_r return types in opcache: ext/opcache/Optimizer/zend_func_info.c

From: Date: Wed, 04 Dec 2019 06:16:32 +0000
Subject: com php-src: Fix print_r return types in opcache: ext/opcache/Optimizer/zend_func_info.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-109365@lists.php.net to get a copy of this message
Commit: c8e9aa854cb722855dad450bff5815326853ff6a Author: Tyson Andre <tysonandre775@hotmail.com> Sat, 30 Nov 2019 14:14:06 -0500 Committer: Nikita Popov <nikita.ppv@gmail.com> Wed, 4 Dec 2019 07:16:32 +0100 Parents: 65bbc6706397136df70f6d9e08e5410b18109568 Branches: PHP-7.3 PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c8e9aa854cb722855dad450bff5815326853ff6a Log: Fix print_r return types in opcache https://www.php.net/print_r > When the return parameter is TRUE, this function will return a string. > Otherwise, the return value is TRUE. 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 3eea2c197ef..ba5ef82c4cd 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -533,7 +533,7 @@ static const func_info_t func_infos[] = { F0("var_dump", MAY_BE_NULL), F1("var_export", MAY_BE_NULL | MAY_BE_STRING), F0("debug_zval_dump", MAY_BE_NULL), - F1("print_r", MAY_BE_FALSE | MAY_BE_STRING), + F1("print_r", MAY_BE_TRUE | MAY_BE_STRING), F0("memory_get_usage", MAY_BE_FALSE | MAY_BE_LONG), F0("memory_get_peak_usage", MAY_BE_FALSE | MAY_BE_LONG), F0("register_shutdown_function", MAY_BE_NULL | MAY_BE_FALSE),

« previous php.cvs (#109365) next »