Skip to content

Commit c8e9aa8

Browse files
TysonAndrenikic
authored andcommitted
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.
1 parent 65bbc67 commit c8e9aa8

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
@@ -533,7 +533,7 @@ static const func_info_t func_infos[] = {
533533
F0("var_dump", MAY_BE_NULL),
534534
F1("var_export", MAY_BE_NULL | MAY_BE_STRING),
535535
F0("debug_zval_dump", MAY_BE_NULL),
536-
F1("print_r", MAY_BE_FALSE | MAY_BE_STRING),
536+
F1("print_r", MAY_BE_TRUE | MAY_BE_STRING),
537537
F0("memory_get_usage", MAY_BE_FALSE | MAY_BE_LONG),
538538
F0("memory_get_peak_usage", MAY_BE_FALSE | MAY_BE_LONG),
539539
F0("register_shutdown_function", MAY_BE_NULL | MAY_BE_FALSE),

0 commit comments

Comments
 (0)