php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77746 curl_setopt crashes PHP when passing object instead of array as third argument.
Submitted: 2019-03-15 11:38 UTC Modified: 2019-03-24 04:22 UTC
From: pixel at hugbox dot org Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: 7.3.3 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pixel at hugbox dot org
New email:
PHP Version: OS:

 

 [2019-03-15 11:38 UTC] pixel at hugbox dot org
Description:
------------
curl_setopt ($curlobj, CURLOPT_HTTPHEADER, new WhatEverObjInsteadOfArray());

causes a segmentation fault in all versions since PHP-5.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-03-15 11:52 UTC] danack@php.net
-Status: Open +Status: Feedback
 [2019-03-15 11:52 UTC] danack@php.net
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
 [2019-03-24 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC