]> granicus.if.org Git - php/commitdiff
some more fixes towards making it work again
authorSterling Hughes <sterling@php.net>
Sun, 21 Apr 2002 00:27:05 +0000 (00:27 +0000)
committerSterling Hughes <sterling@php.net>
Sun, 21 Apr 2002 00:27:05 +0000 (00:27 +0000)
ext/xslt/sablot.c

index ec44260d6ae4dc8bdd563a0c3e0fc62a4e052440..ffdfbefa6640f0f7c26edb5a14a2c195f5d07ab3 100644 (file)
@@ -194,7 +194,7 @@ PHP_FUNCTION(xslt_create)
        XSLT_CONTEXT(handle) = ctx;
 
        /* Allocate the actual processor itself, via sablotron */
-       error = SablotCreateProcessor(&processor);
+       error = SablotCreateProcessorForSituation(XSLT_CONTEXT(handle), &processor);
        if (error) {
                XSLT_ERRNO(handle) = error;
                RETURN_FALSE;
@@ -480,7 +480,7 @@ PHP_FUNCTION(xslt_set_log)
 /* {{{ S_DOM *_php_sablot_dom_proc(php_xslt *, char *, size_t, zval **)
  */
 static SDOM_Document 
-_php_sablot_dom_proc(php_xslt *h, char *datap, size_t data_len, zval **args)
+_php_sablot_dom_proc(php_xslt *handle, char *datap, size_t data_len, zval **args)
 {
        SDOM_Document domtree;
 
@@ -499,10 +499,10 @@ _php_sablot_dom_proc(php_xslt *h, char *datap, size_t data_len, zval **args)
                        return NULL;
                }
 
-               SablotParseBuffer(XSLT_CONTEXT(h), Z_STRVAL_PP(data), &domtree);
+               SablotParseBuffer(XSLT_CONTEXT(handle), Z_STRVAL_PP(data), &domtree);
        }
        else {
-               SablotParse(XSLT_CONTEXT(h), datap, &domtree);
+               SablotParse(XSLT_CONTEXT(handle), datap, &domtree);
        }
 
        return domtree;
@@ -558,7 +558,7 @@ PHP_FUNCTION(xslt_process)
                RETURN_FALSE;
        }
 
-       SablotAddArgTree(handle->processor.ctx,
+       SablotAddArgTree(XSLT_CONTEXT(handle),
                                         XSLT_PROCESSOR(handle),
                                         "xml",
                                         xml_dom);