Ignore:
Timestamp:
2012-07-22T08:26:35+02:00 (21 months ago)
Author:
moo
Message:

refactor: split extension init to sub module. TODO: compatibility regression

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mod_disassembler/xc_disassembler.c

    r1003 r1026  
    33#include "xcache/xc_utils.h" 
    44#include "xcache/xc_sandbox.h" 
     5#include "xcache/xc_compatibility.h" 
    56#include "xc_processor.h" 
     7 
     8#include "ext/standard/info.h" 
    69 
    710static void xc_dasm(zval *output, zend_op_array *op_array TSRMLS_DC) /* {{{ */ 
     
    216219} 
    217220/* }}} */ 
     221 
     222/* {{{ PHP_MINFO_FUNCTION(xcache_disassembler) */ 
     223static PHP_MINFO_FUNCTION(xcache_disassembler) 
     224{ 
     225    php_info_print_table_start(); 
     226    php_info_print_table_row(2, "XCache Disassembler Version", XCACHE_VERSION); 
     227    php_info_print_table_end(); 
     228 
     229    DISPLAY_INI_ENTRIES(); 
     230} 
     231/* }}} */ 
     232static zend_function_entry xcache_disassembler_functions[] = /* {{{ */ 
     233{ 
     234    PHP_FE(xcache_dasm_file,         NULL) 
     235    PHP_FE(xcache_dasm_string,       NULL) 
     236    PHP_FE_END 
     237}; 
     238/* }}} */ 
     239static zend_module_entry xcache_disassembler_module_entry = { /* {{{ */ 
     240    STANDARD_MODULE_HEADER, 
     241    XCACHE_NAME "_Disassembler", 
     242    xcache_disassembler_functions, 
     243    NULL, 
     244    NULL, 
     245    NULL, 
     246    NULL, 
     247    PHP_MINFO(xcache_disassembler), 
     248    XCACHE_VERSION, 
     249#ifdef PHP_GINIT 
     250    NO_MODULE_GLOBALS, 
     251#endif 
     252#ifdef ZEND_ENGINE_2 
     253    NULL, 
     254#else 
     255    NULL, 
     256    NULL, 
     257#endif 
     258    STANDARD_MODULE_PROPERTIES_EX 
     259}; 
     260/* }}} */ 
     261int xc_disassembler_startup_module() /* {{{ */ 
     262{ 
     263    return zend_startup_module(&xcache_disassembler_module_entry); 
     264} 
     265/* }}} */ 
Note: See TracChangeset for help on using the changeset viewer.