cvs: php4 /ext/xslt php_sablot.h sablot.c
| From: | Christian Stocker | Date: | Thu, 22 Aug 2002 09:54:04 +0000 |
| Subject: | cvs: php4 /ext/xslt php_sablot.h sablot.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13555@lists.php.net to get a copy of this message | ||
chregu Thu Aug 22 05:54:04 2002 EDT
Modified files:
/php4/ext/xslt php_sablot.h sablot.c
Log:
@ - Added xslt_backend_version() and xslt_backend_name() for getting
@ information about the processor backend. (chregu)
Index: php4/ext/xslt/php_sablot.h
diff -u php4/ext/xslt/php_sablot.h:1.10 php4/ext/xslt/php_sablot.h:1.11
--- php4/ext/xslt/php_sablot.h:1.10 Mon Jun 24 15:31:30 2002
+++ php4/ext/xslt/php_sablot.h Thu Aug 22 05:54:04 2002
@@ -62,6 +62,8 @@
PHP_FUNCTION(xslt_error);
PHP_FUNCTION(xslt_errno);
PHP_FUNCTION(xslt_free);
+PHP_FUNCTION(xslt_backend_version);
+PHP_FUNCTION(xslt_backend_name);
struct scheme_handlers {
zval *get_all;
Index: php4/ext/xslt/sablot.c
diff -u php4/ext/xslt/sablot.c:1.51 php4/ext/xslt/sablot.c:1.52
--- php4/ext/xslt/sablot.c:1.51 Mon Jul 29 19:57:23 2002
+++ php4/ext/xslt/sablot.c Thu Aug 22 05:54:04 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: sablot.c,v 1.51 2002/07/29 23:57:23 sterling Exp $ */
+/* $Id: sablot.c,v 1.52 2002/08/22 09:54:04 chregu Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -87,6 +87,8 @@
PHP_FE(xslt_error, NULL)
PHP_FE(xslt_errno, NULL)
PHP_FE(xslt_free, NULL)
+ PHP_FE(xslt_backend_version, NULL)
+ PHP_FE(xslt_backend_name, NULL)
{NULL, NULL, NULL}
};
/* }}} */
@@ -605,6 +607,26 @@
/* Remove the entry from the list */
zend_list_delete(Z_LVAL_PP(processor_p));
+}
+/* }}} */
+
+/* {{{ proto void xslt_backend_version()
+ Returns the version number of Sablotron (if available) */
+PHP_FUNCTION(xslt_backend_version)
+{
+#ifdef SAB_VERSION
+ RETURN_STRING(SAB_VERSION,1);
+#else
+ RETURN_FALSE;
+#endif
+}
+/* }}} */
+
+/* {{{ proto void xslt_backend_name()
+ Returns the name of the Backend (here "Sablotron")*/
+PHP_FUNCTION(xslt_backend_name)
+{
+ RETURN_STRING("Sablotron",1);
}
/* }}} */