Skip to content

Commit a9b59be

Browse files
committed
make shell_exec() stub consistent with system, passthru, exec and regenerate arginfo
1 parent 4e2bab9 commit a9b59be

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,8 +1004,11 @@ function escapeshellcmd(string $command): string {}
10041004
/** @refcount 1 */
10051005
function escapeshellarg(string $arg): string {}
10061006

1007-
/** @refcount 1 */
1008-
function shell_exec(string $command, int &$result_code = null): string|false|null {}
1007+
/**
1008+
* @param int $result_code
1009+
* @refcount 1
1010+
*/
1011+
function shell_exec(string $command, &$result_code = null): string|false|null {}
10091012

10101013
#ifdef HAVE_NICE
10111014
function proc_nice(int $priority): bool {}

ext/standard/basic_functions_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 96393b26861733e5c7fc9a12095a29c07ed73928 */
2+
* Stub hash: 57b39034cfe4b7421db6a6cc09ba4b086e95d646 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0)
55
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)

0 commit comments

Comments
 (0)