mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

The reflection failure is because the XML extension is used to check the module dependency information, but that extension can be configured to not depend on ext/libxml, resulting in a different output. The solution is to check another extension instead. The test failures in ext/xml/tests are because of different behaviour between libxml2 and Expat error handling. These are expected differences and the solution is to split the tests. Closes GH-13522.
24 lines
502 B
PHP
24 lines
502 B
PHP
--TEST--
|
|
xml_error_string() - Basic test on 5 error codes
|
|
--EXTENSIONS--
|
|
xml
|
|
--SKIPIF--
|
|
<?php
|
|
require __DIR__ . '/libxml_expat_skipif.inc';
|
|
skipif(want_expat: false);
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
require __DIR__ . '/xml_error_string_basic.inc';
|
|
?>
|
|
--EXPECTF--
|
|
int(%r5|77%r)
|
|
string(%d) %r"Invalid document end"|"Tag not finished"%r
|
|
int(47)
|
|
string(35) "Processing Instruction not finished"
|
|
int(57)
|
|
string(28) "XML declaration not finished"
|
|
int(64)
|
|
string(17) "Reserved XML Name"
|
|
int(76)
|
|
string(14) "Mismatched tag"
|