]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #38511, #38473, #38263 (Fixed session extension request
authorIlia Alshanetsky <iliaa@php.net>
Tue, 22 Aug 2006 16:47:43 +0000 (16:47 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 22 Aug 2006 16:47:43 +0000 (16:47 +0000)
shutdown order to ensure it is shutdown before the extensions it may depend
on).

ext/date/php_date.c

index 116e9cac7d25e6b1ff819d43a6058dbc30140db3..aad77c181589f95340588f70d7586e7a9ecf2f11 100644 (file)
@@ -302,9 +302,17 @@ static zend_object_value date_object_new_timezone(zend_class_entry *class_type T
 static zend_object_value date_object_clone_date(zval *this_ptr TSRMLS_DC);
 static zend_object_value date_object_clone_timezone(zval *this_ptr TSRMLS_DC);
 
+/* This is need to ensure that session extension request shutdown occurs 1st, because it uses the date extension */ 
+static zend_module_dep date_deps[] = {
+        ZEND_MOD_OPTIONAL("session")
+        {NULL, NULL, NULL}
+};
+
 /* {{{ Module struct */
 zend_module_entry date_module_entry = {
-       STANDARD_MODULE_HEADER,
+       STANDARD_MODULE_HEADER_EX,
+       NULL,
+       date_deps,
        "date",                     /* extension name */
        date_functions,             /* function list */
        PHP_MINIT(date),            /* process startup */