]> granicus.if.org Git - php/commitdiff
fix TSRM build
authorMarcus Boerger <helly@php.net>
Sat, 2 Nov 2002 10:58:02 +0000 (10:58 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 2 Nov 2002 10:58:02 +0000 (10:58 +0000)
ext/xslt/sablot.c

index 7449a4446358c2ab843aa0b82fd19d9c51ebe604..474f77f221ffc7256c0b7ec60f6c893e81cbbfe3 100644 (file)
@@ -541,6 +541,7 @@ PHP_FUNCTION(xslt_process)
                /* Can return NULL */
                if (args) {
                        char *baseuri;
+                       TSRMLS_FETCH();
                        i=0;
                        while (args[i]) {
                                /* We can safely add args[i+1] since xslt_make_array sets args[i] to NULL if
@@ -553,7 +554,6 @@ PHP_FUNCTION(xslt_process)
                        /* Since we have args passed, we need to set the base uri, so pull in executor
                                globals and set the base, using the current filename, specifally for the
                                'arg' scheme */
-                       TSRMLS_FETCH();
                        baseuri = (char *)emalloc(strlen(zend_get_executed_filename(TSRMLS_C))+7+1);
                        sprintf(baseuri, "file://%s", zend_get_executed_filename(TSRMLS_C));