Bug #57900 [Opn->Wfx]: functions die() or exit() crash after call get_elements_by_tagname

From: Date: Thu, 28 May 2015 11:36:01 +0000
Subject: Bug #57900 [Opn->Wfx]: functions die() or exit() crash after call get_elements_by_tagname
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192963@lists.php.net to get a copy of this message
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


Thread (1 message)

  • cmb@php.net
  • Unknown Message
    • cmb@php.net
« previous php.bugs (#192963) next »