Changeset 16

Show
Ignore:
Timestamp:
07/08/05 21:31:16 (9 years ago)
Author:
shughes
Message:

allow fastxsl to compile with TSRM enabled
make fastxsl work with PHP5

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/fastxsl.c

    r11 r16  
    270270 
    271271static php_ss_wrapper * 
    272 PrmCache_Stylesheet_ParseAndStore(char *filename, size_t filename_len, int mtime
     272PrmCache_Stylesheet_ParseAndStore(char *filename, size_t filename_len, int mtime TSRMLS_DC
    273273{ 
    274274        php_ss_wrapper *wrapper; 
     
    288288 
    289289static void 
    290 PrmCache_Stylesheet_Free(php_ss_wrapper *wrapper
     290PrmCache_Stylesheet_Free(php_ss_wrapper *wrapper TSRMLS_DC
    291291{ 
    292292        if (wrapper->ss) { 
     
    913913        int output = 0; 
    914914        va_list args; 
     915    TSRMLS_FETCH(); 
     916 
    915917        va_start(args, msg); 
    916918        fraglen = vspprintf(&frag, 0, msg, args); 
     
    10171019        int param_count = nargs - 1; 
    10181020        int i; 
     1021    TSRMLS_FETCH(); 
    10191022         
    10201023        tctxt = (xsltTransformContextPtr) xsltXPathGetTransformContext(ctxt); 
     
    11161119PHP_INI_BEGIN() 
    11171120        STD_PHP_INI_ENTRY("fastxsl.shmpath", "/tmp/fastxsl_mem", PHP_INI_SYSTEM, OnUpdateString, shmpath, zend_fastxsl_globals, fastxsl_globals) 
    1118         STD_PHP_INI_BOOLEAN("fastxsl.nostat", "0", PHP_INI_ALL, OnUpdateInt, nostat, zend_fastxsl_globals, fastxsl_globals)  
    1119         STD_PHP_INI_BOOLEAN("fastxsl.register_functions", "0", PHP_INI_ALL, OnUpdateInt, register_functions, zend_fastxsl_globals, fastxsl_globals)  
     1121        STD_PHP_INI_BOOLEAN("fastxsl.nostat", "0", PHP_INI_ALL, OnUpdateLong, nostat, zend_fastxsl_globals, fastxsl_globals)  
     1122        STD_PHP_INI_BOOLEAN("fastxsl.register_functions", "0", PHP_INI_ALL, OnUpdateLong, register_functions, zend_fastxsl_globals, fastxsl_globals)  
    11201123PHP_INI_END() 
    11211124