From: Tyson Andre Date: Sun, 25 Aug 2019 15:02:28 +0000 (-0400) Subject: Also fix signature for passthru X-Git-Tag: php-7.4.0RC1~42^2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e82a2d659aac6ef95a6820d4f6ac3684e07bcad;p=php Also fix signature for passthru Backported from a1a8d144854acb1c891cf0c21abb0f612b1d8de7 https://www.php.net/manual/en/function.passthru.php#refsect1-function.passthru-returnvalues `passthru()` is false with invalid args `passthru('command')` is null. --- diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c index 7f08104743..7395540bef 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -404,7 +404,7 @@ static const func_info_t func_infos[] = { F1("system", MAY_BE_FALSE | MAY_BE_STRING), F1("escapeshellcmd", MAY_BE_NULL | MAY_BE_STRING), F1("escapeshellarg", MAY_BE_NULL | MAY_BE_STRING), - F1("passthru", MAY_BE_FALSE | MAY_BE_STRING), + F1("passthru", MAY_BE_NULL | MAY_BE_FALSE), F1("shell_exec", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), #ifdef PHP_CAN_SUPPORT_PROC_OPEN F1("proc_open", MAY_BE_FALSE | MAY_BE_RESOURCE),