簡體   English   中英

帶有curl或file_get_contents的HTTPS請求導致php崩潰

[英]HTTPS requests with curl or file_get_contents cause php crashes

服務器上的php已啟用openssl擴展名(可以在phpinfo()中看到)

PHP版本5.2.14

'./configure''-前綴= / usr / local / webserver / php''--with-config-file-path = / usr / local / webserver / php / etc''--with-mysql = / usr / lib64 / mysql''--with-mysqli = / usr / bin / mysql_config''--with-iconv-dir = / usr / local''--with-freetype-dir''--with-jpeg-dir ''--with-png-dir''--with-zlib''--with-libxml-dir = / usr''--enable-xml''--disable-rpath''--enable-discard-路徑''--enable-safe-mode''--enable-bcmath''--enable-shmop''--enable-sysvsem''--enable-inline優化''--with-curl''- -with-curlwrappers''--enable-mbregex''--enable-fastcgi''--enable-fpm''--enable-force-cgi-redirect''--enable-mbstring''--with-mcrypt ''--with-gd''--enable-gd-native-ttf''--with-openssl''--with-mhash''--enable-pcntl''--enable-sockets''- with-ldap''--with-ldap-sasl''--with-xmlrpc''--enable-zip''--enable-soap'

php-fpm.log

6月18日10:03:08.882866 [警告] fpm_stdio_child_said(),第167行:孩子8665(池默認值)對stderr說:“”

6月18日10:03:08.884945 [注意] fpm_got_signal(),第48行:收到了SIGCHLD

6月18日10:03:08.885008 [警告] fpm_children_bury(),第215行:子項8665(池默認值)在啟動33.717855秒后退出了信號11 SIGSEGV

6月18日10:03:08.885573 [注意] fpm_children_make(),第352行:子級8689(默認池)已啟動

6月18日10:03:09.689830 [警告] fpm_stdio_child_said(),第167行:孩子8606(池默認值)對stderr說:“ [[Mon Jun 18 10:03:09 2012“” 225

6月18日10:03:09.690014 [警告] fpm_stdio_child_said(),第167行:子8606(池默認值)對stderr說:“] [注意] EACCELERATOR(8606):PHP在xxx.php的curl_exec()的opline 130上崩潰了:383“

但是,當通過HTTPS請求時,nginx返回502(錯誤的網關方式)錯誤。

如何找到原因?

前幾天我遇到了一個非常類似的問題,我的系統是Linux CentOS6.2,最后我使用了CentOS 5.6,問題解決了,我認為原因是系統版本和openSSL版本不匹配,
我的英語不是很好,但是希望它對您有幫助

這是libcurl問題。

確保libcurl具有openssl支持。

checking for SSL support in libcurl... yes
checking for openssl support in libcurl... yes

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM