Skip to content

Commit

Permalink
Remove passthru from master
Browse files Browse the repository at this point in the history
  • Loading branch information
jfoulquie-tnw committed Mar 31, 2022
1 parent ba48d3a commit 4a91860
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
29 changes: 0 additions & 29 deletions generated/exec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion generated/functionsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,6 @@
'parse_ini_file',
'parse_ini_string',
'parse_url',
'passthru',
'pcntl_getpriority',
'pcntl_setpriority',
'pcntl_signal',
Expand Down

0 comments on commit 4a91860

Please # to comment.