|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-02-05 11:14 UTC] info at mybrain dot nl
[2018-02-05 12:12 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2018-02-05 12:12 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 10:00:01 2025 UTC |
Description: ------------ I am upgrading functioning code from PHP 5.x to 7.2.2 and the function completely dies the script hits xml_parse, and the data chunk contains a node with the 'table' name. The following code gives '12' as output, nothing else. When '<table />' is changed to '<ttable />' there is no issue, then I get '1234' as output. Test script: --------------- $data = '<?xml version="1.0" encoding="ISO-8859-1" ?> <table /> <img texttype="text/html"/> </DOC>'; echo '1'; try { echo '2'; $a = xml_parse($xml_parser, $data); echo '3'; } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; } echo '4'; exit; Expected result: ---------------- 1234 Actual result: -------------- 12