Bug #75919 [NEW]: xml_parse dies when <table> node is used

From: Date: Mon, 05 Feb 2018 10:36:37 +0000
Subject: Bug #75919 [NEW]: xml_parse dies when <table> node is used
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213814@lists.php.net to get a copy of this message
From: info at mybrain dot nl Operating system: Windows2008R2 IIS7 PHP version: 7.2.2 Package: *XML functions Bug Type: Bug Bug description:xml_parse dies when <table> node is used 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 -- Edit bug report at https://bugs.php.net/bug.php?id=75919&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75919&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75919&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75919&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75919&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75919&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75919&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75919&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75919&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75919&r=support Expected behavior: https://bugs.php.net/fix.php?id=75919&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75919&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75919&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75919&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75919&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75919&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75919&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75919&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75919&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75919&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75919&r=mysqlcfg

« previous php.bugs (#213814) next »