helly Fri Aug 22 12:59:39 2008 UTC Modified files: /php-src/main internal_functions.c.in internal_functions_nw.c internal_functions_win32.c main.c mergesort.c php.h Log: - Cleanup exports and allow to overwrite ext registration http://cvs.php.net/viewvc.cgi/php-src/main/internal_functions.c.in?r1=1.32&r2=1.33&diff_format=u Index: php-src/main/internal_functions.c.in diff -u php-src/main/internal_functions.c.in:1.32 php-src/main/internal_functions.c.in:1.33 --- php-src/main/internal_functions.c.in:1.32 Sat Aug 12 19:41:28 2006 +++ php-src/main/internal_functions.c.in Fri Aug 22 12:59:38 2008 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: internal_functions.c.in,v 1.32 2006/08/12 19:41:28 nlopess Exp $ */ +/* $Id: internal_functions.c.in,v 1.33 2008/08/22 12:59:38 helly Exp $ */ #include "php.h" #include "php_main.h" @@ -34,9 +34,8 @@ }; #define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *)) - -int php_register_internal_extensions(TSRMLS_D) +PHPAPI int php_register_internal_extensions(TSRMLS_D) { return php_register_extensions(php_builtin_extensions, EXTCOUNT TSRMLS_CC); } http://cvs.php.net/viewvc.cgi/php-src/main/internal_functions_nw.c?r1=1.14&r2=1.15&diff_format=u Index: php-src/main/internal_functions_nw.c diff -u php-src/main/internal_functions_nw.c:1.14 php-src/main/internal_functions_nw.c:1.15 --- php-src/main/internal_functions_nw.c:1.14 Mon Dec 31 07:12:18 2007 +++ php-src/main/internal_functions_nw.c Fri Aug 22 12:59:38 2008 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: internal_functions_nw.c,v 1.14 2007/12/31 07:12:18 sebastian Exp $ */ +/* $Id: internal_functions_nw.c,v 1.15 2008/08/22 12:59:38 helly Exp $ */ /* {{{ includes */ @@ -83,8 +83,7 @@ #define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *)) - -int php_register_internal_extensions(TSRMLS_D) +PHPAPI int php_register_internal_extensions(TSRMLS_D) { return php_register_extensions(php_builtin_extensions, EXTCOUNT TSRMLS_CC); } http://cvs.php.net/viewvc.cgi/php-src/main/internal_functions_win32.c?r1=1.92&r2=1.93&diff_format=u Index: php-src/main/internal_functions_win32.c diff -u php-src/main/internal_functions_win32.c:1.92 php-src/main/internal_functions_win32.c:1.93 --- php-src/main/internal_functions_win32.c:1.92 Mon Dec 31 07:12:18 2007 +++ php-src/main/internal_functions_win32.c Fri Aug 22 12:59:38 2008 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: internal_functions_win32.c,v 1.92 2007/12/31 07:12:18 sebastian Exp $ */ +/* $Id: internal_functions_win32.c,v 1.93 2008/08/22 12:59:38 helly Exp $ */ /* {{{ includes */ @@ -157,7 +157,7 @@ #define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *)) -int php_register_internal_extensions(TSRMLS_D) +PHPAPI int php_register_internal_extensions(TSRMLS_D) { return php_register_extensions(php_builtin_extensions, EXTCOUNT TSRMLS_CC); } http://cvs.php.net/viewvc.cgi/php-src/main/main.c?r1=1.779&r2=1.780&diff_format=u Index: php-src/main/main.c diff -u php-src/main/main.c:1.779 php-src/main/main.c:1.780 --- php-src/main/main.c:1.779 Fri Aug 15 19:45:25 2008 +++ php-src/main/main.c Fri Aug 22 12:59:38 2008 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: main.c,v 1.779 2008/08/15 19:45:25 felipe Exp $ */ +/* $Id: main.c,v 1.780 2008/08/22 12:59:38 helly Exp $ */ /* {{{ includes */ @@ -91,6 +91,8 @@ #include "rfc1867.h" /* }}} */ +PHPAPI int (*php_register_internal_extensions_func)(TSRMLS_D) = php_register_internal_extensions; + #ifndef ZTS php_core_globals core_globals; #else @@ -1995,7 +1997,7 @@ zend_register_default_classes(TSRMLS_C); /* startup extensions staticly compiled in */ - if (php_register_internal_extensions(TSRMLS_C) == FAILURE) { + if (php_register_internal_extensions_func(TSRMLS_C) == FAILURE) { php_printf("Unable to start builtin modules\n"); return FAILURE; } http://cvs.php.net/viewvc.cgi/php-src/main/mergesort.c?r1=1.15&r2=1.16&diff_format=u Index: php-src/main/mergesort.c diff -u php-src/main/mergesort.c:1.15 php-src/main/mergesort.c:1.16 --- php-src/main/mergesort.c:1.15 Thu Sep 23 15:57:30 2004 +++ php-src/main/mergesort.c Fri Aug 22 12:59:38 2008 @@ -34,7 +34,7 @@ * SUCH DAMAGE. */ -/* $Id: mergesort.c,v 1.15 2004/09/23 15:57:30 hyanantha Exp $ */ +/* $Id: mergesort.c,v 1.16 2008/08/22 12:59:38 helly Exp $ */ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)merge.c 8.2 (Berkeley) 2/14/94"; @@ -102,7 +102,7 @@ /* {{{ php_mergesort * Arguments are as for qsort. */ -int php_mergesort(void *base, size_t nmemb, size_t size, int (*cmp)(const void *, const void * TSRMLS_DC) TSRMLS_DC) +PHPAPI int php_mergesort(void *base, size_t nmemb, size_t size, int (*cmp)(const void *, const void * TSRMLS_DC) TSRMLS_DC) { register unsigned int i; register int sense; http://cvs.php.net/viewvc.cgi/php-src/main/php.h?r1=1.248&r2=1.249&diff_format=u Index: php-src/main/php.h diff -u php-src/main/php.h:1.248 php-src/main/php.h:1.249 --- php-src/main/php.h:1.248 Wed Aug 13 22:39:33 2008 +++ php-src/main/php.h Fri Aug 22 12:59:38 2008 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php.h,v 1.248 2008/08/13 22:39:33 kalle Exp $ */ +/* $Id: php.h,v 1.249 2008/08/22 12:59:38 helly Exp $ */ #ifndef PHP_H #define PHP_H @@ -313,12 +313,10 @@ /* functions */ BEGIN_EXTERN_C() -int php_register_internal_extensions(TSRMLS_D); - -int php_mergesort(void *base, size_t nmemb, register size_t size, int (*cmp)(const void *, const void * TSRMLS_DC) TSRMLS_DC); - +PHPAPI extern int (*php_register_internal_extensions_func)(TSRMLS_D); +PHPAPI int php_register_internal_extensions(TSRMLS_D); +PHPAPI int php_mergesort(void *base, size_t nmemb, register size_t size, int (*cmp)(const void *, const void * TSRMLS_DC) TSRMLS_DC); PHPAPI void php_register_pre_request_shutdown(void (*func)(void *), void *userdata); - PHPAPI void php_com_initialize(TSRMLS_D); END_EXTERN_C()
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php