1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 18:13:00 +02:00

Small fixes.

This commit is contained in:
Sterling Hughes
2001-07-03 12:16:03 +00:00
parent 51a4c0ceb6
commit 6809bcf2b5
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@
-------------------------------------------------------------------------------
Every extension must define the following functions:
- xslt_create()
- xslt_create()
- xslt_set_scheme_handlers()
- xslt_set_sax_handlers()
- xslt_set_error_handler()

View File

@@ -437,7 +437,7 @@ PHP_FUNCTION(xslt_set_log)
}
ZEND_FETCH_RESOURCE(handle, php_xslt *, processor_p, -1, le_xslt_name, le_xslt);
if (Z_TYPE_PP(logfile) == IS_LONG) {
if (Z_TYPE_PP(logfile) == IS_LONG || Z_TYPE_PP(logfile) == IS_BOOL || Z_TYPE_PP(logfile) == IS_DOUBLE) {
XSLT_LOG(handle).do_log = Z_LVAL_PP(logfile);
RETURN_NULL();
}