diff --git a/conf/config.neon b/conf/config.neon index 5ad99397a9..7ccc0e1b57 100644 --- a/conf/config.neon +++ b/conf/config.neon @@ -201,6 +201,7 @@ parameters: - ../stubs/arrayFunctions.stub - ../stubs/core.stub - ../stubs/typeCheckingFunctions.stub + - ../stubs/openssl.stub earlyTerminatingMethodCalls: [] earlyTerminatingFunctionCalls: [] memoryLimitFile: %tmpDir%/.memory_limit diff --git a/stubs/core.stub b/stubs/core.stub index 853222642c..195338bb0b 100644 --- a/stubs/core.stub +++ b/stubs/core.stub @@ -328,3 +328,17 @@ function ltrim(string $string, string $characters = " \n\r\t\v\x00"): string {} * @return ($string is lowercase-string ? lowercase-string : string) */ function rtrim(string $string, string $characters = " \n\r\t\v\x00"): string {} + +/** + * @param array|string $command + * @param array $descriptor_spec + * @param array &$pipes + * @param string|null $cwd + * @param array|null $env_vars + * @param array|null $options + * + * @param-out string $pipes + * + * @return resource|false + */ +function proc_open(array|string $command, array $descriptor_spec, &$pipes, ?string $cwd, ?array $env_vars, ?array $options) {} diff --git a/stubs/openssl.stub b/stubs/openssl.stub new file mode 100644 index 0000000000..6a9ff0208a --- /dev/null +++ b/stubs/openssl.stub @@ -0,0 +1,18 @@ +