proc_close
(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8)
proc_close — Close pipes to a process opened by proc_open(), wait for it to terminate, and return its exit code
Return Values
Returns the termination status of the process that was run. In case of
an error, -1 is returned.
Note:
If PHP has been compiled with --enable-sigchild, the return value of this function is undefined.