From 4a91860b36013e0480181cb21c7b629eadcaf5f4 Mon Sep 17 00:00:00 2001 From: Julio Foulquie Date: Thu, 31 Mar 2022 09:11:20 -0300 Subject: [PATCH] Remove passthru from master --- generated/exec.php | 29 ----------------------------- generated/functionsList.php | 1 - 2 files changed, 30 deletions(-) diff --git a/generated/exec.php b/generated/exec.php index 5163694e..ea0cd6c6 100644 --- a/generated/exec.php +++ b/generated/exec.php @@ -43,35 +43,6 @@ function exec(string $command, ?array &$output = null, ?int &$result_code = null } -/** - * The passthru function is similar to the - * exec function in that it executes a - * command. This function - * should be used in place of exec or - * system when the output from the Unix command - * is binary data which needs to be passed directly back to the - * browser. A common use for this is to execute something like the - * pbmplus utilities that can output an image stream directly. By - * setting the Content-type to image/gif and - * then calling a pbmplus program to output a gif, you can create - * PHP scripts that output images directly. - * - * @param string $command The command that will be executed. - * @param int|null $result_code If the result_code argument is present, the - * return status of the Unix command will be placed here. - * @throws ExecException - * - */ -function passthru(string $command, ?int &$result_code = null): void -{ - error_clear_last(); - $result = \passthru($command, $result_code); - if ($result === false) { - throw ExecException::createFromPhpError(); - } -} - - /** * proc_nice changes the priority of the current * process by the amount specified in priority. A diff --git a/generated/functionsList.php b/generated/functionsList.php index bf152651..f5970b52 100644 --- a/generated/functionsList.php +++ b/generated/functionsList.php @@ -693,7 +693,6 @@ 'parse_ini_file', 'parse_ini_string', 'parse_url', - 'passthru', 'pcntl_getpriority', 'pcntl_setpriority', 'pcntl_signal',