playground-tools
playground-tools copied to clipboard
Support for cURL or allow_url_fopen?
Is there support for cURL
& allow_url_fopen
? (VS Code extension on Windows in wp-content mode
.)
Steps to reproduce
- Ensured
php.ini
in~\.wp-now\php-exe\
hasallow_url_fopen = On
andextension=curl
is uncommented (couldn't locate any other php.ini files)
Guzzle
$ composer require guzzlehttp/guzzle
GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler.
Curl
<?php $ch = curl_init(); ?>
Call to undefined function curl_init()
ini_get
<?php if ( ! ini_get('allow_url_fopen') ) { ini_set('allow_url_fopen', true); } var_dump( ini_get('allow_url_fopen') ); ?>
false
<?php var_dump( ini_get('disable_functions') ); ?>
proc_open,popen,curl_exec,curl_multi_exec
Cheers Ben