Commit 9098d15
committed
ext/iconv/tests/bug52211.phpt: skip for non-GNU iconv implementations
This test ensures that iconv() will not return part of the string if
it encounters an error, but the particular error it wants to cause is
not portable. When the input sequence is not representable in the
output charset, POSIX says that "iconv() shall perform an
implementation-defined conversion on the character" rather than
fail. As far as I know, the only two implementations that go against
this recommendation (and return the error that this test is expecting)
are GNU libiconv and glibc.
This commit adds a SKIPIF check for the two GNU implementations to
ensure that an error is actually encountered during this test.1 parent 27a1d69 commit 9098d15
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
3 | 14 | | |
4 | 15 | | |
5 | 16 | | |
| |||
0 commit comments