Skip to content

Commit f66feae

Browse files
authored
Sync HAVE_<extension> help texts (#15167)
This syncs all help texts of extension preprocessor macros to the same style "Define to 1 if the PHP extension '<ext>' is available.". [skip ci]
1 parent 4993453 commit f66feae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+107
-76
lines changed

ext/bcmath/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ if test "$PHP_BCMATH" != "no"; then
3232
[$ext_shared],,
3333
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
3434
PHP_ADD_BUILD_DIR([$ext_builddir/libbcmath/src])
35-
AC_DEFINE(HAVE_BCMATH, 1, [Whether you have bcmath])
35+
AC_DEFINE([HAVE_BCMATH], [1],
36+
[Define to 1 if the PHP extension 'bcmath' is available.])
3637
fi

ext/bcmath/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ if (PHP_BCMATH == "yes") {
1010
floor_or_ceil.c nearzero.c num2str.c raise.c rmzero.c str2num.c \
1111
round.c convert.c", "bcmath");
1212

13-
AC_DEFINE('HAVE_BCMATH', 1, 'Have BCMATH library');
13+
AC_DEFINE('HAVE_BCMATH', 1, "Define to 1 if the PHP extension 'bcmath' is available.");
1414
}

ext/bz2/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ if test "$PHP_BZ2" != "no"; then
2121
PHP_ADD_LIBRARY_WITH_PATH([bz2],
2222
[$BZIP_DIR/$PHP_LIBDIR],
2323
[BZ2_SHARED_LIBADD])
24-
AC_DEFINE([HAVE_BZ2], [1], [ ])
24+
AC_DEFINE([HAVE_BZ2], [1],
25+
[Define to 1 if the PHP extension 'bz2' is available.])
2526
],
2627
[AC_MSG_ERROR([bz2 module requires libbz2 >= 1.0.0])],
2728
[-L$BZIP_DIR/$PHP_LIBDIR])

ext/bz2/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if (PHP_BZ2 != "no") {
66
if (CHECK_LIB("libbz2_a.lib;libbz2.lib", "bz2", PHP_BZ2) &&
77
CHECK_HEADER_ADD_INCLUDE("bzlib.h", "CFLAGS_BZ2")) {
88
EXTENSION("bz2", "bz2.c bz2_filter.c");
9-
AC_DEFINE('HAVE_BZ2', 1, 'Have BZ2 library');
9+
AC_DEFINE('HAVE_BZ2', 1, "Define to 1 if the PHP extension 'bz2' is available.");
1010
// BZ2 extension does this slightly differently from others
1111
if (PHP_BZ2_SHARED) {
1212
ADD_FLAG("CFLAGS_BZ2", "/D PHP_BZ2_EXPORTS ");

ext/calendar/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ PHP_ARG_ENABLE([calendar],
44
[Enable support for calendar conversion])])
55

66
if test "$PHP_CALENDAR" = "yes"; then
7-
AC_DEFINE(HAVE_CALENDAR,1,[ ])
7+
AC_DEFINE([HAVE_CALENDAR], [1],
8+
[Define to 1 if the PHP extension 'calendar' is available.])
89
PHP_NEW_EXTENSION([calendar],
910
[calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c],
1011
[$ext_shared])

ext/calendar/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ ARG_ENABLE("calendar", "calendar conversion support", "yes");
55
if (PHP_CALENDAR == "yes") {
66
EXTENSION("calendar", "calendar.c dow.c french.c gregor.c jewish.c \
77
julian.c easter.c cal_unix.c");
8-
AC_DEFINE('HAVE_CALENDAR', 1, 'Have calendar');
8+
AC_DEFINE('HAVE_CALENDAR', 1, "Define to 1 if the PHP extension 'calendar' is available.");
99
}

ext/com_dotnet/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ if (PHP_COM_DOTNET == "yes") {
88
com_handlers.c com_iterator.c com_misc.c com_olechar.c \
99
com_typeinfo.c com_variant.c com_wrapper.c com_saproxy.c com_persist.c",
1010
null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
11-
AC_DEFINE('HAVE_COM_DOTNET', 1, 'Have COM_DOTNET support');
11+
AC_DEFINE('HAVE_COM_DOTNET', 1, "Define to 1 if the PHP extension 'com_dotnet' is available.");
1212
CHECK_HEADER_ADD_INCLUDE('mscoree.h', 'CFLAGS_COM_DOTNET');
1313
}

ext/ctype/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PHP_ARG_ENABLE([ctype],
55
[yes])
66

77
if test "$PHP_CTYPE" != "no"; then
8-
AC_DEFINE(HAVE_CTYPE, 1, [ ])
8+
AC_DEFINE([HAVE_CTYPE], [1],
9+
[Define to 1 if the PHP extension 'ctype' is available.])
910
PHP_NEW_EXTENSION([ctype], [ctype.c], [$ext_shared])
1011
fi

ext/ctype/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ ARG_ENABLE("ctype", "ctype", "yes");
44

55
if (PHP_CTYPE == "yes") {
66
EXTENSION("ctype", "ctype.c");
7-
AC_DEFINE('HAVE_CTYPE', 1, 'Have ctype');
7+
AC_DEFINE('HAVE_CTYPE', 1, "Define to 1 if the PHP extension 'ctype' is available.");
88
}

ext/curl/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ if test "$PHP_CURL" != "no"; then
7474
PHP_CHECK_LIBRARY([curl],
7575
[curl_easy_perform],
7676
[AC_DEFINE([HAVE_CURL], [1],
77-
[Define to 1 if curl extension is available.])],
77+
[Define to 1 if the PHP extension 'curl' is available.])],
7878
[AC_MSG_ERROR([The libcurl check failed. Please, check config.log for details.])],
7979
[$CURL_LIBS])
8080

0 commit comments

Comments
 (0)