-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Labels
status: help wantedrequesting help from the communityrequesting help from the communitytype: bugbug in the librarybug in the library
Description
Issue Summary
I noticed some code I had depending on the sendgrid-php library suddenly started emitting output after a composer update. Turns out there's this code in Client.php
curl_setopt_array($curl, array_merge([
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HEADER => 1,
CURLOPT_CUSTOMREQUEST => strtoupper($method),
CURLOPT_SSL_VERIFYPEER => false,
], $this->curlOptions));
array_merge does not maintain keys, therefore the curl constants do not get set on the merged options array and return transfer is therefore false i.e. curl emits its body text response as if it had been echo'd out.
Steps to Reproduce
- Perform any http request using library that has body content returned to client.
Technical details:
Tested on PHP7 with release sha#aa09fb89e2be2624de9db4dde914d27cbdece95c
thinkingserious
Metadata
Metadata
Assignees
Labels
status: help wantedrequesting help from the communityrequesting help from the communitytype: bugbug in the librarybug in the library