mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
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.
This commit is contained in:
@@ -2,6 +2,14 @@
|
||||
imap_mutf7_to_utf8
|
||||
--EXTENSIONS--
|
||||
imap
|
||||
--SKIPIF--
|
||||
<?php
|
||||
// The underlying imap_mutf7_to_utf8 function can be missing; there's a
|
||||
// ./configure check for it that disables the corresponding PHP function.
|
||||
if (!function_exists('imap_mutf7_to_utf8')) {
|
||||
die("skip no imap_mutf7_to_utf8 function");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -2,6 +2,14 @@
|
||||
imap_utf8_to_mutf7
|
||||
--EXTENSIONS--
|
||||
imap
|
||||
--SKIPIF--
|
||||
<?php
|
||||
// The underlying imap_utf8_to_mutf7 function can be missing; there's a
|
||||
// ./configure check for it that disables the corresponding PHP function.
|
||||
if (!function_exists('imap_utf8_to_mutf7')) {
|
||||
die("skip no imap_utf8_to_mutf7 function");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
Reference in New Issue
Block a user