[php-src] PR #15072: Skip test if libxml does not support GBK encoding
| From: | arnaud-lb | Date: | Mon, 22 Jul 2024 22:44:22 +0000 |
| Subject: | [php-src] PR #15072: Skip test if libxml does not support GBK encoding | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27445@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15072
Author: arnaud-lb
When libxml uses musl's iconv implementation, conversion to GBK is not supported. As a result
this test
[fails](https://github.com/php/php-src/actions/runs/10045763531/job/27763725938?pr=13925#step:11:73)
like this:
``` diff
001- <?xml version="1.0" encoding="GBK"?>
002- <!--������-->
001+ Warning: XMLWriter::startDocument(): xmlTextWriterStartDocument : unsupported encoding in
/__w/php-src/php-src/ext/xmlwriter/tests/xmlwriter_toStream_encoding_gbk.php on line 6
002+ <!--ééé-->
```
Here I try to skip the test in this case.
The skipif section is quite large, unfortunately. Checking that iconv supports GBK via the iconv
extension wouldn't be reliable as it may be linked against gnu iconv even on musl builds.