cvs: /php4 internal_functions_win32.c
| From: | Sascha Schumann | Date: | Fri, 03 Sep 1999 18:33:31 +0000 |
| Subject: | cvs: /php4 internal_functions_win32.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-4056@lists.php.net to get a copy of this message | ||
sas Fri Sep 3 14:33:31 1999 EDT
Modified files:
/php4 internal_functions_win32.c
Log:
Add global startup/shutdown functions in Win32 version as well
Index: php4/internal_functions_win32.c
diff -u php4/internal_functions_win32.c:1.11 php4/internal_functions_win32.c:1.12
--- php4/internal_functions_win32.c:1.11 Wed Sep 1 15:28:07 1999
+++ php4/internal_functions_win32.c Fri Sep 3 14:33:30 1999
@@ -18,7 +18,7 @@
*/
-/* $Id: internal_functions_win32.c,v 1.11 1999/09/01 19:28:07 andi Exp $ */
+/* $Id: internal_functions_win32.c,v 1.12 1999/09/03 18:33:30 sas Exp $ */
#include "php.h"
@@ -91,6 +91,38 @@
while (ptr < end) {
if (*ptr) {
if (zend_startup_module(*ptr)==FAILURE) {
+ return FAILURE;
+ }
+ }
+ ptr++;
+ }
+ return SUCCESS;
+}
+
+int module_global_startup_modules(void)
+{
+ zend_module_entry **ptr = php3_builtin_modules, **end =
ptr+(sizeof(php3_builtin_modules)/sizeof(zend_module_entry *));
+
+ while (ptr < end) {
+ if (*ptr) {
+ if ((*ptr)->global_startup_func &&
+ (*ptr)->global_startup_func()==FAILURE) {
+ return FAILURE;
+ }
+ }
+ ptr++;
+ }
+ return SUCCESS;
+}
+
+int module_global_shutdown_modules(void)
+{
+ zend_module_entry **ptr = php3_builtin_modules, **end =
ptr+(sizeof(php3_builtin_modules)/sizeof(zend_module_entry *));
+
+ while (ptr < end) {
+ if (*ptr) {
+ if ((*ptr)->global_shutdown_func &&
+ (*ptr)->global_shutdown_func()==FAILURE) {
return FAILURE;
}
}