"--with-curlwrappers" Option 和 php- file get contents 函数无法使用

来自linux中国网wiki
docker>Evan2017年9月12日 (二) 03:12的版本 (创建页面,内容为“=with-curlwrappers= <pre> 原因 : --with-curlwrappers 运用curl工具打开url流 导致 stream_get_meta_data类型为 url流 Solutions: 1) Use cURL entirely ins...”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索

with-curlwrappers

原因 : --with-curlwrappers 运用curl工具打开url流 导致  stream_get_meta_data类型为 url流

Solutions:
1) Use cURL entirely instead of using fopen() for stream connections.

2) Re-configure and re-compile PHP without the "--with-curlwrappers" option.

ps:
php -i | grep configure

参考

Problems With PHP Compiled Using "--with-curlwrappers" Option

PHP 以编译方式安装,编译参数详解析 PHP编译参数详解

PHP –with-curlwrappers 导致的问题