php-src/ext/imap
Michael Orlitzky f9cbeaa033
ext/imap/config.m4: -Werror=implicit-function-declaration compatibility.
The recent clang-16 throws errors for implicitly defined functions by
default. In many ./configure tests, an undefined function (which is
"implicitly defined" when you try to call it) is undefined because it
really does not exist. But in one case, utf8_to_mutf7() is undefined
because we forgot to include the header that defines it.

This commit updates the test for utf8_to_mutf7:

  * We now include the header (c-client.h) that defines it.
  * A "checking... yes/no" message was added to the test.
  * The test was switched from PHP_IMAP_TEST_BUILD to AC_COMPILE_IFELSE.
    This was the easiest way to avoid a return-type mismatch that runs
    afoul of -Werror=implicit-int.
  * CPPFLAGS is temporarily amended with the -I flag needed to find
    c-client.h.

Fixes GH-10947.

Closes GH-10948

Signed-off-by: George Peter Banyard <girgias@php.net>
2023-03-28 15:18:18 +01:00
..
tests Fix GH-9309: Segfault when connection is used after imap_close() 2022-08-12 16:24:30 +02:00
config.m4 ext/imap/config.m4: -Werror=implicit-function-declaration compatibility. 2023-03-28 15:18:18 +01:00
config.w32 Remove unused defines 2019-07-18 02:21:39 +02:00
CREDITS
php_imap_arginfo.h Merge branch 'PHP-8.0' into PHP-8.1 2021-11-25 18:31:14 +01:00
php_imap.c Fix GH-9309: Segfault when connection is used after imap_close() 2022-08-12 16:24:30 +02:00
php_imap.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_imap.stub.php Merge branch 'PHP-8.0' into PHP-8.1 2021-11-25 18:31:14 +01:00