PHP 5.3.8 WordPress CURL 间歇性错误
我将 IIS 7.5 Web 服务器从 PHP 5.2.17 升级到 PHP 5.3.8。 执行此操作后,我的 Wordpress 安装开始间歇性地产生 500 个错误:
HTTP 错误 500.0 - 内部服务器错误
C:\Program Files (x86)\PHP\v5.3\php-cgi.exe - FastCGI 进程意外退出详细错误信息
模块FastCGIModule
通知ExecuteRequestHandler
处理程序 PHP53_via_FastCGI
错误代码0x000000ff
我还在该服务器上运行 Drupal 和 Zend Framework,两者都使用 CURL,但这些并没有产生错误。因此,我想说这是 CURL 的 WordPress 实现特有的。
我查看了Windows应用程序错误日志,发现以下错误:
故障应用程序名称:php-cgi.exe,版本:5.3.8.0,时间戳:0x4e537f4b
错误模块名称:php_curl.dll,版本:5.3.8.0,时间戳:0x4e537f64
异常代码:0xc0000005
故障偏移:0x00036864
错误进程 ID:0x378
错误的应用程序启动时间:0x01cccf17892cff0e
错误应用程序路径:C:\Program Files (x86)\PHP\v5.3\php-cgi.exe
错误模块路径:C:\Program Files (x86)\PHP\v5.3\ext\php_curl.dll
报告 ID:ec31f1ab-3b0a-11e1-9d5f-005056b30014
I upgraded my IIS 7.5 web server to PHP 5.3.8 from PHP 5.2.17.
After doing so, my Wordpress install started intermittently producing 500 errors:
HTTP Error 500.0 - Internal Server Error
C:\Program Files (x86)\PHP\v5.3\php-cgi.exe - The FastCGI process exited unexpectedlyDetailed Error Information
Module FastCGIModule
Notification ExecuteRequestHandler
Handler PHP53_via_FastCGI
Error Code 0x000000ff
I also run Drupal and the Zend Framework on this server, both of which use CURL, but these did not produce the error. As such, I'd say it's something specific to the Wordpress implementation of CURL.
I looked in the Windows application error log and found the following errors:
Faulting application name: php-cgi.exe, version: 5.3.8.0, time stamp: 0x4e537f4b
Faulting module name: php_curl.dll, version: 5.3.8.0, time stamp: 0x4e537f64
Exception code: 0xc0000005
Fault offset: 0x00036864
Faulting process id: 0x378
Faulting application start time: 0x01cccf17892cff0e
Faulting application path: C:\Program Files (x86)\PHP\v5.3\php-cgi.exe
Faulting module path: C:\Program Files (x86)\PHP\v5.3\ext\php_curl.dll
Report Id: ec31f1ab-3b0a-11e1-9d5f-005056b30014
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这似乎是以下 PHP 错误的表现,该错误是在 5.3.7 中随新版本的 cURL 引入的:
https://bugs.php.net/bug.php?id=60576
如果您不需要新 cURL 版本中的新功能(例如从 php.ini 中指定的文件读取证书),请从 http://windows.php.net/downloads/releases/archives/ 并替换 ext\ PHP 5.3.6 版本的 php_curl.dll。
如果您确实需要这些功能...这是一个悬而未决的问题。
希望这对某人有帮助!
This appears to be a manifestation of the following PHP bug, introduced in 5.3.7 with a new version of cURL:
https://bugs.php.net/bug.php?id=60576
If you don't need the new features from the the new cURL version (such as reading certificates from a file specified in php.ini), download the relevant PHP 5.3.6 Zip file from http://windows.php.net/downloads/releases/archives/ and replace ext\php_curl.dll with the PHP 5.3.6 version.
If you do need these features... that's an open question.
Hope this helps someone!
我也遇到同样的问题。我的配置如下。
我正在使用代理。此外,我的代理需要身份验证。我发现
wp-includes/class-http.php
文件中的请求方法之一有问题。我通过将下面的行(行号为 1247)替换
为下面给出的行解决了这个问题。
I am also experiencing the same problem. My configuration is given below.
I am using proxy. Moreover, my proxy requires authentication. I found that one of the request methods in the file
wp-includes/class-http.php
is problematic.I solved the issue by replacing below lines (line number is 1247)
with the lines given below.