jani Thu May 14 18:34:27 2009 UTC Added files: (Branch: PHP_5_2) /php-src/ext/date config0.m4
Removed files: /php-src/ext/date config.m4 Modified files: /ZendEngine2 zend.c /php-src/ext/date php_date.c /php-src/build order_by_dep.awk Log: MFH: Fixed module loading order and made request shutdown functions also to be loaded in reverse like all other shutdowns are. http://cvs.php.net/viewvc.cgi/ZendEngine2/zend.c?r1=1.308.2.12.2.37&r2=1.308.2.12.2.38&diff_format=u Index: ZendEngine2/zend.c diff -u ZendEngine2/zend.c:1.308.2.12.2.37 ZendEngine2/zend.c:1.308.2.12.2.38 --- ZendEngine2/zend.c:1.308.2.12.2.37 Wed Dec 31 11:17:32 2008 +++ ZendEngine2/zend.c Thu May 14 18:34:26 2009 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend.c,v 1.308.2.12.2.37 2008/12/31 11:17:32 sebastian Exp $ */ +/* $Id: zend.c,v 1.308.2.12.2.38 2009/05/14 18:34:26 jani Exp $ */ #include "zend.h" #include "zend_extensions.h" @@ -835,7 +835,7 @@ EG(opline_ptr) = NULL; /* we're no longer executing anything */ zend_try { - zend_hash_apply(&module_registry, (apply_func_t) module_registry_cleanup TSRMLS_CC); + zend_hash_reverse_apply(&module_registry, (apply_func_t) module_registry_cleanup TSRMLS_CC); } zend_end_try(); } http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.43.2.45.2.67&r2=1.43.2.45.2.68&diff_format=u Index: php-src/ext/date/php_date.c diff -u php-src/ext/date/php_date.c:1.43.2.45.2.67 php-src/ext/date/php_date.c:1.43.2.45.2.68 --- php-src/ext/date/php_date.c:1.43.2.45.2.67 Tue May 5 10:58:24 2009 +++ php-src/ext/date/php_date.c Thu May 14 18:34:27 2009 @@ -16,7 +16,9 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_date.c,v 1.43.2.45.2.67 2009/05/05 10:58:24 pajoye Exp $ */ +/* $Id: php_date.c,v 1.43.2.45.2.68 2009/05/14 18:34:27 jani Exp $ */ + +#define _ISOC9X_SOURCE #include "php.h" #include "php_streams.h" @@ -316,17 +318,11 @@ static int date_object_compare_date(zval *d1, zval *d2 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_EX, NULL, - date_deps, + NULL, "date", /* extension name */ date_functions, /* function list */ PHP_MINIT(date), /* process startup */ http://cvs.php.net/viewvc.cgi/php-src/build/order_by_dep.awk?r1=1.1&r2=1.1.4.1&diff_format=u Index: php-src/build/order_by_dep.awk diff -u php-src/build/order_by_dep.awk:1.1 php-src/build/order_by_dep.awk:1.1.4.1 --- php-src/build/order_by_dep.awk:1.1 Sun Jul 18 12:03:51 2004 +++ php-src/build/order_by_dep.awk Thu May 14 18:34:27 2009 @@ -79,8 +79,7 @@ out_count = 0; while (count(mods)) { - # count down, since we need to assemble it in reverse order - for (i = mod_count-1; i >= 0; --i) { + for (i = 0; i <= mod_count; i++) { if (i in mods) { do_deps(i); } http://cvs.php.net/viewvc.cgi/php-src/ext/date/config0.m4?view=markup&rev=1.1 Index: php-src/ext/date/config0.m4 +++ php-src/ext/date/config0.m4 dnl $Id: config0.m4,v 1.1 2009/05/13 00:45:57 jani Exp $ dnl config.m4 for date extension sinclude(ext/date/lib/timelib.m4) sinclude(lib/timelib.m4) PHP_DATE_CFLAGS="-...@ext_builddir@/lib" timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c" PHP_NEW_EXTENSION(date, php_date.c $timelib_sources, no,, $PHP_DATE_CFLAGS) PHP_ADD_BUILD_DIR([$ext_builddir/lib], 1) PHP_ADD_INCLUDE([$ext_builddir/lib]) PHP_ADD_INCLUDE([$ext_srcdir/lib]) PHP_INSTALL_HEADERS([ext/date], [php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h]) cat > $ext_builddir/lib/timelib_config.h <<EOF #ifdef PHP_WIN32 # include "config.w32.h" #else # include <php_config.h> #endif EOF -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php