代码如下:
$cli = '/path/program getvar 2>&1 ';$handle = popen($cli, 'r');$read = fread($handle, 1024);pclose($handle);
Segmentation fault
记忆体区段错误;
Segmentation fault
记忆体区段错误;
$handle = popen($cli, 'r');
var_dump($handle); // 看看有什么。