(PHP 4, PHP 5, PHP 7)
pclose — 锟截闭斤拷锟斤拷锟侥硷拷指锟斤拷
锟斤拷锟斤拷锟斤拷锟叫的斤拷锟教碉拷锟斤拷止状态锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷时锟结返锟斤拷 -1锟斤拷
Example #1 pclose() 锟斤拷锟斤拷
<?php
$handle = popen('/bin/ls', 'r');
pclose($handle);
?>
Note: Unix Only:
proc_close() is internally implemented using the waitpid(3) system call. To obtain the real exit status code the pcntl_wexitstatus() function should be used.