cvs: php4 /ext/xslt sablot.c

From: Date: Tue, 31 Jul 2001 23:22:18 +0000
Subject: cvs: php4 /ext/xslt sablot.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6447@lists.php.net to get a copy of this message
sterling Tue Jul 31 19:22:18 2001 EDT Modified files: /php4/ext/xslt sablot.c Log: Fix ZTS build. Index: php4/ext/xslt/sablot.c diff -u php4/ext/xslt/sablot.c:1.17 php4/ext/xslt/sablot.c:1.18 --- php4/ext/xslt/sablot.c:1.17 Tue Jul 31 15:43:10 2001 +++ php4/ext/xslt/sablot.c Tue Jul 31 19:22:18 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sablot.c,v 1.17 2001/07/31 19:43:10 sterling Exp $ */ +/* $Id: sablot.c,v 1.18 2001/07/31 23:22:18 sterling Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -690,7 +690,8 @@ zval *argv[3]; /* Arguments to the scheme getall function */ zval *retval; /* Return value from the scheme getall function */ php_xslt *handle = (php_xslt *) user_data; /* A PHP-XSLT processor */ - + TSRMLS_FETCH(); + /* If the scheme handler get all function doesn't exist, exit out */ if (!XSLT_SCHEME(handle).get_all) { @@ -767,7 +768,8 @@ zval *argv[3]; /* Arguments to the scheme open function */ zval *retval; /* The return value from the scheme open function */ php_xslt *handle = (php_xslt *) user_data; /* A PHP-XSLT processor */ - + TSRMLS_FETCH(); + /* If no open handler exists, let's exit */ if (!XSLT_SCHEME(handle).open) { return 0; @@ -809,7 +811,8 @@ zval *argv[3]; /* Arguments to the scheme get function */ zval *retval; /* Return value from the scheme get function */ php_xslt *handle = (php_xslt *) user_data; /* A PHP-XSLT processor */ - + TSRMLS_FETCH(); + /* If no get handler exists, let's exit */ if (!XSLT_SCHEME(handle).get) { return 0; @@ -852,7 +855,8 @@ zval *argv[3]; /* Arguments to the scheme put function */ zval *retval; /* Return value from the scheme put function */ php_xslt *handle = (php_xslt *) user_data; /* A PHP-XSLT processor */ - + TSRMLS_FETCH(); + /* If no put handler exists, let's exit */ if (!XSLT_SCHEME(handle).put) { return 0; @@ -895,7 +899,8 @@ zval *argv[2]; /* Arguments to the scheme close function*/ zval *retval; /* Return value from the scheme close function */ php_xslt *handle = (php_xslt *) user_data; /* A PHP-XSLT processor */ - + TSRMLS_FETCH(); + /* if no close handler exists, exit */ if (!XSLT_SCHEME(handle).close) { return 0; @@ -932,7 +937,8 @@ zval *argv[1]; /* Arguments to the sax start doc function */ zval *retval; /* Return value from sax start doc function */ php_xslt *handle = (php_xslt *) ctx; /* A PHP-XSLT processor */ - + TSRMLS_FETCH(); + /* if no document start function exists, exit */ if (!XSLT_SAX(handle).doc_start) { return; @@ -964,7 +970,8 @@ zval *retval; /* Return value from the sax start element function */ php_xslt *handle = (php_xslt *) ctx; /* A PHP-XSLT processor */ char **p; /* Pointer to attributes */ - + TSRMLS_FETCH(); + /* If no element start function is found, exit */ if (!XSLT_SAX(handle).element_start) { return; @@ -1008,7 +1015,8 @@ zval *argv[2]; /* Arguments to the sax end element function */ zval *retval; /* Return value from the sax end element function */ php_xslt *handle = (php_xslt *) ctx; /* A PHP-XSLT processor */ - + TSRMLS_FETCH(); + /* If no element end function exists, exit */ if (!XSLT_SAX(handle).element_end) { return; @@ -1043,7 +1051,8 @@ zval *argv[3]; /* Arguments to the sax start namespace function */ zval *retval; /* Return value from the sax start namespace function */ php_xslt *handle = (php_xslt *) ctx; /* A PHP-XSLT processor */ - + TSRMLS_FETCH(); + /* if no namespace start function exists, exit */ if (!XSLT_SAX(handle).namespace_start) { return; @@ -1079,7 +1088,8 @@ zval *argv[2]; /* Arguments to the sax end namespace function */ zval *retval; /* Return value from the sax end namespace function */ php_xslt *handle = (php_xslt *) ctx; /* A PHP-XSLT processor */ - + TSRMLS_FETCH(); + /* If no namespace end function exists, exit */ if (!XSLT_SAX(handle).namespace_end) { return; @@ -1112,7 +1122,8 @@ zval *argv[2]; /* Arguments to the sax comment function */ zval *retval; /* Return value from the sax comment function */ php_xslt *handle = (php_xslt *) ctx; /* A PHP-XSLT processor */ - + TSRMLS_FETCH(); + /* if no comment function exists, exit */ if (!XSLT_SAX(handle).comment) { return; @@ -1147,7 +1158,8 @@ zval *argv[3]; /* Arguments to the sax processing instruction function */ zval *retval; /* Return value from the sax processing instruction function */ php_xslt *handle = (php_xslt *) ctx; /* A PHP-XSLT processor */ - + TSRMLS_FETCH(); + /* If no processing instructions function exists, exit */ if (!XSLT_SAX(handle).pi) { return; @@ -1185,7 +1197,8 @@ zval *argv[2]; /* Arguments to the sax characters function */ zval *retval; /* Return value to the sax characters function */ php_xslt *handle = (php_xslt *) ctx; /* A PHP-XSLT processor */ - + TSRMLS_FETCH(); + /* If no characters function exists, exit */ if (!XSLT_SAX(handle).characters) { return; @@ -1218,7 +1231,8 @@ zval *argv[1]; /* Arguments to the end document function */ zval *retval; /* Return value from the end document function */ php_xslt *handle = (php_xslt *) ctx; /* A PHP-XSLT processor */ - + TSRMLS_FETCH(); + /* If no end document function exists, exit */ if (!XSLT_SAX(handle).doc_end) { return; @@ -1399,7 +1413,8 @@ if (XSLT_ERROR(handle)) { zval *argv[4]; /* Arguments to the error function */ zval *retval; /* Return value from the error function */ - + TSRMLS_FETCH(); + /* Allocate and initialize */ MAKE_STD_ZVAL(argv[0]); MAKE_STD_ZVAL(argv[1]);

« previous php.cvs (#6447) next »