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

来自linux中国网wiki
跳到导航 跳到搜索

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 导致的问题