From c8e9aa854cb722855dad450bff5815326853ff6a Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Sat, 30 Nov 2019 14:14:06 -0500 Subject: 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. --- ext/opcache/Optimizer/zend_func_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c index 3eea2c197e..ba5ef82c4c 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), -- cgit v1.2.1