Edit report at https://bugs.php.net/bug.php?id=57900&edit=1
ID: 57900
Updated by: cmb@php.net
Reported by: rak at avast dot com
Summary: functions die() or exit() crash after call
get_elements_by_tagname
-Status: Open
+Status: Wont fix
Type: Bug
-Package: domxml
+Package: *General Issues
Operating System: Windows XP
PHP Version: 5.2.1
Block user comment: N
Private report: N
New Comment:
Tagging as WONTFIX, because the domxml extension has been superseeded by the bundled DOM extension.
Previous Comments:
------------------------------------------------------------------------
[2007-11-07 03:59:47] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=57900&edit=1