summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyson Andre <tysonandre775@hotmail.com>2019-11-30 14:14:06 -0500
committerNikita Popov <nikita.ppv@gmail.com>2019-12-04 07:16:32 +0100
commitc8e9aa854cb722855dad450bff5815326853ff6a (patch)
tree8908ae0e4e916ca4a210c8b094664ac41f22fa37
parent65bbc6706397136df70f6d9e08e5410b18109568 (diff)
downloadphp-git-c8e9aa854cb722855dad450bff5815326853ff6a.tar.gz
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.
-rw-r--r--ext/opcache/Optimizer/zend_func_info.c2
1 files changed, 1 insertions, 1 deletions
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),