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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 13 09:01:27 2025 UTC