|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57813 resetCookies causes segfault
Submitted: 2007-08-30 04:42 UTC Modified: 2008-03-25 08:43 UTC
From: gprzybylski at eurodns dot com Assigned: mike (profile)
Status: No Feedback Package: pecl_http (PECL)
PHP Version: 5.2.1 OS: Ubuntu/Redhat Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: gprzybylski at eurodns dot com
New email:
PHP Version: OS:


 [2007-08-30 04:42 UTC] gprzybylski at eurodns dot com
Resetting cookies list (empty or not) causes segfault.

Reproduce code:
 $objHttp = new HttpRequest('');
 // -> segmentation fault

 // OR

 $arrCookies = array('test' => 'testvalue');
 $objHttp = new HttpRequest('');
 // -> segmentation fault

Expected result:
no segfault :)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-30 07:51 UTC]
This schould be fixed in current CVS.

Anyway, note that resetCookies does not reset cookies set with setCookies, but libcurl internal (retrieved from website) cookies. To unset custom cookies call setCookies(array())!

Would be awesome if you could test current CVS (HEAD or R_1_5 branch).

 [2007-09-18 07:13 UTC]
Any news?
 [2008-03-25 08:43 UTC]
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 "Open". Thank you.

 [2008-06-21 09:13 UTC] troy at yortfolio dot com

I have the same problem but in Windows.

Currently running ...
Windows XP Pro x64 SP2
Apache 2.2
PHP 5.2.6
pecl_http 1.6.1-dev (from pecl package)
libcurl 7.16.0

Once I remove ->resetCookies() the script continues fine. I would take it from this the bug is still there.

Not sure what other details you require but would be good to see this fixed.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 23:01:29 2024 UTC