summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyson Andre <tysonandre775@hotmail.com>2019-08-25 11:02:28 -0400
committerNikita Popov <nikita.ppv@gmail.com>2019-08-26 11:13:26 +0200
commit1e82a2d659aac6ef95a6820d4f6ac3684e07bcad (patch)
tree933389aa189f57ad99fa305ba826189e354a2598
parentf5bccc0eb5bfe2b1c9ba55cf1df27f2a18a046fa (diff)
downloadphp-git-1e82a2d659aac6ef95a6820d4f6ac3684e07bcad.tar.gz
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.
-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 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),