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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
49 - 8 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 07:01:29 2024 UTC