Skip to content

Commit 893ca53

Browse files
authored
ext/imap/tests/*mutf7*.phpt: update for missing utf8_to_mutf7() (#11654)
Our ./configure script (ext/imap/config.m4) checks for the utf8_to_mutf7() function in the c-client library, and defines HAVE_IMAP_MUTF7 only if it exists. The two corresponding PHP functions are disabled when it does not, but their tests do not account for that. Here we add two SKIPIFs to hand that scenario.
1 parent 092e090 commit 893ca53

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

ext/imap/tests/imap_mutf7_to_utf8.phpt

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
imap_mutf7_to_utf8
33
--EXTENSIONS--
44
imap
5+
--SKIPIF--
6+
<?php
7+
// The underlying imap_mutf7_to_utf8 function can be missing; there's a
8+
// ./configure check for it that disables the corresponding PHP function.
9+
if (!function_exists('imap_mutf7_to_utf8')) {
10+
die("skip no imap_mutf7_to_utf8 function");
11+
}
12+
?>
513
--FILE--
614
<?php
715

ext/imap/tests/imap_utf8_to_mutf7_basic.phpt

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
imap_utf8_to_mutf7
33
--EXTENSIONS--
44
imap
5+
--SKIPIF--
6+
<?php
7+
// The underlying imap_utf8_to_mutf7 function can be missing; there's a
8+
// ./configure check for it that disables the corresponding PHP function.
9+
if (!function_exists('imap_utf8_to_mutf7')) {
10+
die("skip no imap_utf8_to_mutf7 function");
11+
}
12+
?>
513
--FILE--
614
<?php
715

0 commit comments

Comments
 (0)