php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71852 SolrObject::offsetExists SegFault
Submitted: 2016-03-18 14:08 UTC Modified: 2016-03-18 14:09 UTC
From: omars@php.net Assigned: omars (profile)
Status: Closed Package: solr (PECL)
PHP Version: 5.6.19 OS: *
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:
Package:
Bug Type:
Summary:
From: omars@php.net
New email:
PHP Version: OS:

 

 [2016-03-18 14:08 UTC] omars@php.net
Description:
------------
Segfaults for empty properties

Test script:
---------------
require_once "bootstrap.inc";

$constructedSolrObject = new SolrObject();
var_dump(isset($constructedSolrObject['responseHeader']));

$xml_reponse = file_get_contents(EXAMPLE_RESPONSE_XML_1);
$solrObject = SolrUtils::digestXMLResponse($xml_reponse);

var_dump(isset($solrObject['responseHeader']));
var_dump(isset($solrObject['nonexisting']));

Expected result:
----------------
bool(false)
bool(true)
bool(false)

Actual result:
--------------
Segmentation fault (core dumped)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-18 14:09 UTC] omars@php.net
-Assigned To: +Assigned To: omars
 [2016-03-18 14:19 UTC] omars@php.net
Automatic comment on behalf of omars
Revision: http://git.php.net/?p=pecl/search_engine/solr.git;a=commit;h=b6217588d0963d730f29a98776c5532fe72325c2
Log: Fix Bug #71852 SolrObject::offsetExists SegFault
 [2016-03-18 14:19 UTC] omars@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC