zy2701
zy2701
> > 环境:php7.2, yaf 3.3.3 运行报错: Controller::init(): Modification of Yaf_Controller internal property 'request' is not allowed > > 请问如何解决的 你是否给$this->request赋值了?新版本yaf的request已经被占用,不允许再使用,因为我也发现了这个问题
我是这么操作的: 在controllers下创建一个Error.php文件
大佬我又来挖坟了,我现在终于测试出来了,这种情况存在于所有的yaf版本。 具体的情况是: 控制器使用了__get魔术方法后,当action不存在的时候,php进程会被直接终止.。 windows+apache下显示:500 Internal Server Error 同时apache会记录一条错误日志:[core:error] [pid 5664:tid 1540] [client 127.0.0.1:56787] End of script output before headers: index.php linux+nginx下显示:502 Bad Gateway 同时nginx会记录一条错误日志:recv() failed (104: Connection reset by peer)...
你的本地系统是什么就在设置onekey的时候就选对应的系统来设置,而不是看服务器是什么系统 比如你本地是win,服务器是linux,设置的时候就在win那里设置,而不是linux