]> granicus.if.org Git - php/commitdiff
- Fix Apache php source highlighting mode. It was crashing due to the
authorAndi Gutmans <andi@php.net>
Sun, 21 May 2000 17:41:16 +0000 (17:41 +0000)
committerAndi Gutmans <andi@php.net>
Sun, 21 May 2000 17:41:16 +0000 (17:41 +0000)
- module shutdown functions being called when the startup functions weren't
- being called.

Zend/zend.c
Zend/zend_compile.h

index c2a1e5e261c6ca3b2f3f41f2ef6550d9d3e08e75..961f0fc25eedf4be4f97c63f343f455cfa8fe77c 100644 (file)
@@ -460,12 +460,17 @@ void zend_activate_modules()
        zend_hash_apply(&module_registry, (int (*)(void *)) module_registry_request_startup);
 }
 
+void zend_deactivate_modules()
+{
+       EG(opline_ptr) = NULL; /* we're no longer executing anything */
+
+       zend_hash_apply(&module_registry, (int (*)(void *)) module_registry_cleanup);
+}
 
 void zend_deactivate(CLS_D ELS_DC)
 {
        EG(opline_ptr) = NULL; /* we're no longer executing anything */
 
-       zend_hash_apply(&module_registry, (int (*)(void *)) module_registry_cleanup);
        shutdown_scanner(CLS_C);
        shutdown_executor(ELS_C);
        shutdown_compiler(CLS_C);
index 997c6519bf3eb623d31fd4391c55812fbec83c36..d3eb8dde581fdb9efed18b9ef96e75c3b3bcf787 100644 (file)
@@ -211,6 +211,7 @@ extern ZEND_API zend_op_array *(*zend_v_compile_files)(int type CLS_DC, int file
 void zend_activate(CLS_D ELS_DC);
 void zend_deactivate(CLS_D ELS_DC);
 void zend_activate_modules(void);
+void zend_deactivate_modules(void);
 
 
 int lex_scan(zval *zendlval CLS_DC);