playground-tools icon indicating copy to clipboard operation
playground-tools copied to clipboard

Support for cURL or allow_url_fopen?

Open bcorke opened this issue 1 year ago • 1 comments

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\ has allow_url_fopen = On and extension=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

bcorke avatar Aug 01 '23 17:08 bcorke