Skip to content

Commit 1e82a2d

Browse files
TysonAndrenikic
authored andcommitted
Also fix signature for passthru
Backported from a1a8d14 https://www.php.net/manual/en/function.passthru.php#refsect1-function.passthru-returnvalues `passthru()` is false with invalid args `passthru('command')` is null.
1 parent f5bccc0 commit 1e82a2d

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
@@ -404,7 +404,7 @@ static const func_info_t func_infos[] = {
404404
F1("system", MAY_BE_FALSE | MAY_BE_STRING),
405405
F1("escapeshellcmd", MAY_BE_NULL | MAY_BE_STRING),
406406
F1("escapeshellarg", MAY_BE_NULL | MAY_BE_STRING),
407-
F1("passthru", MAY_BE_FALSE | MAY_BE_STRING),
407+
F1("passthru", MAY_BE_NULL | MAY_BE_FALSE),
408408
F1("shell_exec", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
409409
#ifdef PHP_CAN_SUPPORT_PROC_OPEN
410410
F1("proc_open", MAY_BE_FALSE | MAY_BE_RESOURCE),

0 commit comments

Comments
 (0)