php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57900 functions die() or exit() crash after call get_elements_by_tagname
Submitted: 2007-11-07 03:59 UTC Modified: 2015-05-28 11:36 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: rak at avast dot com Assigned:
Status: Wont fix Package: *General Issues
PHP Version: 5.2.1 OS: Windows XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-11-07 03:59 UTC] rak at avast dot com
Description:
------------
PHP Version 5.2.5RC3-dev
Build Date Nov 3 2007 16:04:47

domxml
DOM/XML 	enabled
DOM/XML API Version 	20030407
libxml Version 	20626
HTML Support 	enabled
XPath Support 	enabled
XPointer Support 	enabled

the problem is on line 
die("DONE");

if you comment this line the script successfully finish (no bug). This code is part of large code, the script continue without problem until the die() or exit() functions are reached. 

Reproduce code:
---------------
<?php

$dom = domxml_open_mem('<?xml version="1.0"
encoding="UTF-8"?><root><row
/> </root>');

someFunction($dom);

function someFunction($dom){
	$users = $dom->get_elements_by_tagname('row');
	die();
}
?>



Expected result:
----------------
on screen should be written:

DONE


Actual result:
--------------
PHP/Apache2 crash

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-28 11:36 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Package: domxml +Package: *General Issues
 [2015-05-28 11:36 UTC] cmb@php.net
Tagging as WONTFIX, because the domxml extension has been superseeded by the bundled DOM extension.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 18:01:31 2024 UTC