string exec ( string command [, array &output [, int &return_var]] )php手册上描述第三个参数为:
return_var
If the return_var argument is present along with the output argument, then the return status of the executed command will be written to this variable. 意思是返回状态写入return_var变量中,那这些状态值代表什么含义?我遇到的问题是:执行自己写的cli,在linux下执行cli正常,但我用php调用时,output参数为空,return_var==11,这说明什么问题?正常返回的话应该是等于0,测过。