php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57633 Segfault due twice call of ZEND_REGISTER_RESOURCE()
Submitted: 2007-04-25 06:10 UTC Modified: 2007-11-28 17:36 UTC
From: andrew at comby dot com Assigned:
Status: Closed Package: html_parse (PECL)
PHP Version: 5.2.1 OS: 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:
Package:
Bug Type:
Summary:
From: andrew at comby dot com
New email:
PHP Version: OS:

 

 [2007-04-25 06:10 UTC] andrew at comby dot com
Description:
------------
PHP_FUNCTION(html_parser_create)
{
...
    ZEND_REGISTER_RESOURCE(return_value, return_res, le_html_parser);
  } while(0);
  ZEND_REGISTER_RESOURCE(return_value, return_res, le_html_parser);
}

ZEND_REGISTER_RESOURCE() is called twice and that leads to segfault.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-28 17:36 UTC] hholzgra@php.net
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/html_parse

fixed in 1.0.0 release
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Jan 18 17:01:23 2020 UTC