Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\Process::__destructSwoole\Process::exit>
^Swoole\ProcessLast updated: Mon, 26 Oct 2026

Swoole\Process::exec

(PECL swoole >= 1.9.0)

Swoole\Process::exec — Execute system commands.

Description

public function Swoole\Process::exec(string $exec_file, string $args): ReturnType

The process will be replaced to be the system command process, but the pipe to the parent process will be kept.

Parameters

exec_file

args

Return Values


<Swoole\Process::__destructSwoole\Process::exit>
^Swoole\ProcessLast updated: Mon, 26 Oct 2026