[PHP-BUG] Bug #81446 [NEW]: Several ext/xml tests fail when built against libexpat

[email protected] ("[email protected]")
Newsgroups php.bugs,php.qa
Message-ID <[email protected]>
From:             cmb
Operating system: *
PHP version:      master-Git-2021-09-16 (Git)
Package:          Testing related
Bug Type:         Bug
Bug description:Several ext/xml tests fail when built against libexpat

Description:
------------
TEST 3/44 [ext/xml/tests/bug26614.phpt]
========DIFF========
     CDATA
     <DATA> at line 2, col 0 (byte 45)
003+ </DATA> at line 9, col 0 (byte 89)
003- </DATA> at line 9, col 0 (byte 90)
     Comment
     <DATA> at line 2, col 0 (byte 45)
006+ </DATA> at line 9, col 0 (byte 89)
006- </DATA> at line 9, col 0 (byte 90)
     Text
     <DATA> at line 2, col 0 (byte 45)
009+ </DATA> at line 9, col 0 (byte 89)
009- </DATA> at line 9, col 0 (byte 90)
========DONE========

TEST 11/44 [ext/xml/tests/bug46699.phpt]
========DIFF========
001+ <a xmlns="http://example.com/foo"
002+     xmlns:bar="http://example.com/bar">
001- <a xmlns="http://example.com/foo"
xmlns:bar="http://example.com/bar">
       <bar:b foo="bar">1</bar:b>
       <bar:c bar:nix="null" foo="bar">2</bar:c>
     </a>
========DONE========

TEST 25/44 [ext/xml/tests/bug81351.phpt]
========DIFF========
001+ xml_parse returned 1, xml_get_error_code = 0, xml_error_string =
002+ xml_parse returned 0, xml_get_error_code = 3, xml_error_string = no
element found
001- xml_parse returned 1, xml_get_error_code = 0, xml_error_string = No
error
002- xml_parse returned 0, xml_get_error_code = 5, xml_error_string =
Invalid document end
========DONE========

TEST 35/44 [ext/xml/tests/xml_error_string_basic.phpt]
========DIFF========
001+ int(3)
002+ string(16) "no element found"
003+ int(4)
004+ string(31) "not well-formed (invalid token)"
     int(5)
006+ string(14) "unclosed token"
007+ int(30)
008+ string(31) "XML declaration not well-formed"
009+ int(7)
010+ string(14) "mismatched tag"
002- string(20) "Invalid document end"
003- int(47)
004- string(35) "Processing Instruction not finished"
005- int(57)
006- string(28) "XML declaration not finished"
007- int(64)
008- string(17) "Reserved XML Name"
009- int(76)
010- string(14) "Mismatched tag"
========DONE========

TEST 44/44
[ext/xml/tests/xml_set_start_namespace_decl_handler_basic.phpt]
========DIFF========
--
     ...Uri: http://www.somewhere.com/namespace1
     Namespace_Start_Handler called
     ...Prefix: aw2
009+ Namespace_End_Handler called
010+ ...Prefix: aw2
011+
012+ Namespace_End_Handler called
013+ ...Prefix: aw1
014+
     Done
========DONE========




-- 
Edit bug report at https://bugs.php.net/bug.php?id=81446&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=81446&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=81446&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=81446&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=81446&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=81446&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=81446&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=81446&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=81446&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=81446&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=81446&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81446&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=81446&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=81446&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=81446&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=81446&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=81446&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=81446&r=mysqlcfg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.