php调用exec时设置超时

参考:https://stackoverflow.com/questions/9419122/exec-with-timeout