HTTP 330错误(PHP弃用错误) [英] HTTP 330 error on PHP deprecation errors

查看:117
本文介绍了HTTP 330错误(PHP弃用错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某种原因,每当打印PHP错误时,我都会收到HTTP 330错误.以前并没有发生这种情况,但是由于服务器故障,我们不得不从备份中还原PHP应用程序,所以确实如此.在恢复过程中,我们从使用Apache切换到了Nginx + fastcgi.但是,我也在本地运行该应用程序,并且在Apache上注意到了相同的问题,但仅在使用php 5.3.X时才注意到.该应用程序过去曾在5.2.11上运行.

For some reason, I get a HTTP 330 error whenever a PHP error is printed. This didn't use to happen, but since we had to restore our PHP application from a backup due to a server failure, it does. During that restoration, we switched over from using Apache to nginx + fastcgi. However, I'm also running the application locally, and I'm noticing the same issue on Apache, but only when using php 5.3.X. The application used to run on 5.2.11.

有人以前遇到过类似的事情吗?谷歌搜索提出的唯一一件事是,也许PHP错误是使用一种编码发送的,而其余内容都是压缩发送的,但我不知道如何解决-甚至是问题所在.

Has anyone encountered anything like this before? The only thing that googling has brought up is that maybe the PHP errors are sent using one encoding, and the rest of the content is sent gzipped, but I have no idea how to fix that - if it even is the problem.

请询问您是否需要更多信息.我不确定我能为您提供哪些信息会有所帮助.

Please ask if you need any more information. I'm not quite sure what information I could provide you with that would be helpful.

推荐答案

在php.ini(zlib.output_compression = On)中启用zlib压缩,然后从脚本中删除任何ob_start("ob_gzhandler");似乎已经解决了问题.

Enabling zlib compression in php.ini (zlib.output_compression = On) and then removing any ob_start("ob_gzhandler"); from the scripts seems to have solved the problem.

这篇关于HTTP 330错误(PHP弃用错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆