Skip to content

Commit 80d7846

Browse files
authored
Add date extension to dependencies (#15475)
This is at this point only meta-data information for extensions to depend also on date extension. This is a configure phase dependency for consistency.
1 parent ed2b456 commit 80d7846

File tree

8 files changed

+9
-0
lines changed

8 files changed

+9
-0
lines changed

ext/intl/config.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,6 @@ if test "$PHP_INTL" != "no"; then
127127
$ext_builddir/transliterator
128128
$ext_builddir/uchar
129129
]))
130+
131+
PHP_ADD_EXTENSION_DEP(intl, date)
130132
fi

ext/intl/config.w32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if (PHP_INTL != "no") {
88
// always build as shared - zend_strtod.c/ICU type conflict
99
EXTENSION("intl", "php_intl.c intl_convert.c intl_convertcpp.cpp intl_error.c ", true,
1010
"/I \"" + configure_module_dirname + "\" /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
11+
ADD_EXTENSION_DEP('intl', 'date');
1112
ADD_SOURCES(configure_module_dirname + "/collator", "\
1213
collator_attr.c \
1314
collator_class.c \

ext/opcache/config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ int main(void) {
343343
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $JIT_CFLAGS],,
344344
[yes])
345345

346+
PHP_ADD_EXTENSION_DEP(opcache, date)
346347
PHP_ADD_EXTENSION_DEP(opcache, pcre)
347348

348349
if test "$php_cv_shm_ipc" != "yes" && test "$php_cv_shm_mmap_posix" != "yes" && test "$php_cv_shm_mmap_anon" != "yes"; then

ext/opcache/config.w32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ if (PHP_OPCACHE != "no") {
1818
zend_shared_alloc.c \
1919
shared_alloc_win32.c", true, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
2020

21+
ADD_EXTENSION_DEP('opcache', 'date');
2122
ADD_EXTENSION_DEP('opcache', 'hash');
2223
ADD_EXTENSION_DEP('opcache', 'pcre');
2324

ext/session/config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if test "$PHP_SESSION" != "no"; then
1919
[$ext_shared],,
2020
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
2121

22+
PHP_ADD_EXTENSION_DEP(session, date)
2223
dnl https://bugs.php.net/53141
2324
PHP_ADD_EXTENSION_DEP(session, spl, true)
2425

ext/session/config.w32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ARG_ENABLE("session", "session support", "yes");
44

55
if (PHP_SESSION == "yes") {
66
EXTENSION("session", "mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c", false /* never shared */, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
7+
ADD_EXTENSION_DEP('session', 'date');
78
// https://bugs.php.net/53141
89
ADD_EXTENSION_DEP('session', 'spl', true);
910
AC_DEFINE("HAVE_PHP_SESSION", 1, "Define to 1 if the PHP extension 'session' is available.");

ext/soap/config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ if test "$PHP_SOAP" != "no"; then
2020
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
2121
PHP_SUBST([SOAP_SHARED_LIBADD])
2222
])
23+
PHP_ADD_EXTENSION_DEP(soap, date)
2324
PHP_ADD_EXTENSION_DEP(soap, hash)
2425
PHP_ADD_EXTENSION_DEP(soap, libxml)
2526
PHP_ADD_EXTENSION_DEP(soap, session, true)

ext/soap/config.w32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if (PHP_SOAP != "no") {
1010
) {
1111
EXTENSION('soap', 'soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c', null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
1212
AC_DEFINE('HAVE_SOAP', 1, "Define to 1 if the PHP extension 'soap' is available.");
13+
ADD_EXTENSION_DEP('soap', 'date');
1314
ADD_EXTENSION_DEP('soap', 'hash');
1415
ADD_EXTENSION_DEP('soap', 'session', true);
1516

0 commit comments

Comments
 (0)