1
0
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:
Michael Orlitzky
2023-07-10 04:43:07 -04:00
committed by GitHub
parent 092e090cf0
commit 893ca537b0
2 changed files with 16 additions and 0 deletions

View File

@@ -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

View File

@@ -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