Bug #77746 [Opn->Fbk]: curl_setopt crashes PHP when passing object instead of array as third argument.

From: Date: Fri, 15 Mar 2019 11:52:38 +0000
Subject: Bug #77746 [Opn->Fbk]: curl_setopt crashes PHP when passing object instead of array as third argument.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219974@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77746&edit=1 ID: 77746 Updated by: danack@php.net Reported by: pixel at hugbox dot org Summary: curl_setopt crashes PHP when passing object instead of array as third argument. -Status: Open +Status: Feedback Type: Bug Package: Unknown/Other Function Operating System: Linux PHP Version: 7.3.3 Block user comment: N Private report: N New Comment: Please can you provide a complete example that shows this. I can't reproduce with: $curlobj = curl_init(); class Foo {} curl_setopt ($curlobj, CURLOPT_HTTPHEADER, new Foo()); echo "fin"; Also, please could you provide a backtrace if possible: https://bugs.php.net/bugs-generating-backtrace.php Previous Comments: ------------------------------------------------------------------------ [2019-03-15 11:38:34] pixel at hugbox dot org Description: ------------ curl_setopt ($curlobj, CURLOPT_HTTPHEADER, new WhatEverObjInsteadOfArray()); causes a segmentation fault in all versions since PHP-5. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77746&edit=1

« previous php.bugs (#219974) next »