mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +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.
9 lines
257 B
PHP
9 lines
257 B
PHP
<?php
|
|
function skipif(bool $want_expat) {
|
|
ob_start();
|
|
echo phpinfo(INFO_MODULES);
|
|
$output = ob_get_clean();
|
|
if ($want_expat !== str_contains($output, 'EXPAT')) {
|
|
die('skip test is for ' . ($want_expat ? 'Expat' : 'libxml'));
|
|
}
|
|
}
|