|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-04-17 11:23 UTC] requinix@php.net
-Status: Open
+Status: Feedback
[2016-04-17 11:23 UTC] requinix@php.net
[2016-05-01 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 21:00:01 2025 UTC |
Description: ------------ Passing an empty array as the third parameter of curl_setopt() when the second parameter is CURLOPT_HTTPHEADER causes a segmentation fault. Also when a variable with value [] is passed to it. My cURL version is 7.48.0 and had the same problem with a much older cURL. Test script: --------------- <?php $c = curl_init(); print "1"; curl_setopt($c, CURLOPT_HTTPHEADER, []); die("done"); Expected result: ---------------- 1done Actual result: -------------- 1Segmentation fault