com php-src: Skip test for old glibc iconv: ext/xml/tests/bug32001.phpt
| From: | Christoph Michael Becker | Date: | Wed, 09 Sep 2015 02:27:28 +0000 |
| Subject: | com php-src: Skip test for old glibc iconv: ext/xml/tests/bug32001.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88967@lists.php.net to get a copy of this message | ||
Commit: 71da4f1f7f6b2ea51f85f2795f8297ba4fa720cb
Author: Christoph M. Becker <cmb@php.net> Wed, 9 Sep 2015 04:27:28 +0200
Parents: b89f128480e673c0c0981a0037c6f4af883881d0
Branches: PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=71da4f1f7f6b2ea51f85f2795f8297ba4fa720cb
Log:
Skip test for old glibc iconv
bug32001.phpt has a high failure rate for the submitted reports. According to
several samples it seems the iconv implementation of glibc 2.12 (released
2010-05) is the culprit. It seems appropriate to skip the test for such old
versions.
Bugs:
https://bugs.php.net/32001
Changed paths:
M ext/xml/tests/bug32001.phpt
Diff:
diff --git a/ext/xml/tests/bug32001.phpt b/ext/xml/tests/bug32001.phpt
index 0853b3a..ed93582 100644
--- a/ext/xml/tests/bug32001.phpt
+++ b/ext/xml/tests/bug32001.phpt
@@ -4,6 +4,8 @@ Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect),
<?php
require_once("skipif.inc");
if (!extension_loaded('iconv')) die ("skip iconv extension not available");
+if (ICONV_IMPL == 'glibc' && version_compare(ICONV_VERSION, '2.12',
'<='))
+ die("skip iconv of glibc <= 2.12 is buggy");
?>
--FILE--
<?php