无论在php.ini 还是在代码里面设置都无法起效 但是旧版可以
public function test111(){ ignore_user_abort(true); set_time_limit(2000); ini_set('max_execution_time', 2000); sleep(60); return '123'; }
新版无法返回123 旧版可以
飞雪2020-10-27 18:12:40
phpstudy_pro\Extensions\Nginx1.15.11\conf路径中修改nginx.conf,在sendtime附近添加参数在这里插入代码片
fastcgi_connect_timeout 600; fastcgi_send_timeout 600; fastcgi_read_timeout 600;`