Skip to content

Commit 71da4f1

Browse files
committed
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.
1 parent b89f128 commit 71da4f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/xml/tests/bug32001.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect),
44
<?php
55
require_once("skipif.inc");
66
if (!extension_loaded('iconv')) die ("skip iconv extension not available");
7+
if (ICONV_IMPL == 'glibc' && version_compare(ICONV_VERSION, '2.12', '<='))
8+
die("skip iconv of glibc <= 2.12 is buggy");
79
?>
810
--FILE--
911
<?php

0 commit comments

Comments
 (0)