I cannot fix this error, ive tried everything. This is what error i get:
Warning: curl_setopt_array(): cannot represent a stream of type MEMORY as a STDIO FILE* in C:\Users****\Desktop***-****\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 56
This is what i tried:
$client = new Client([
'verify' => false,
'debug' => true
]);
And change w to w+ in Curlfactory.php
php://temp and w+
And added this snippet in Curlfactory.php
$conf[CURLOPT_FILE] = fopen('php://temp', 'w+');
if(isset($_SERVER['SERVER_SOFTWARE'])
&& 0 === strpos($_SERVER['SERVER_SOFTWARE'], 'Development/')) {
$conf[CURLOPT_FILE] = fopen(getenv('temp').uniqid(), 'w+');
}
I got these ideas from:
These did not solve my problem. I am using Windows 10. PHPstorm and Google App Engine SDK (PHP) with Guzzle.
Anyone can help me with this problem? This error always appear. In Production Google Cloud it works, no error. Only Local problem.
Thanks.
PS: I am not comfortable editing the vendor files.