summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/xslt/sablot.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/xslt/sablot.c b/ext/xslt/sablot.c
index 7902d4f1b7..6178330a2f 100644
--- a/ext/xslt/sablot.c
+++ b/ext/xslt/sablot.c
@@ -581,7 +581,11 @@ PHP_FUNCTION(xslt_error)
}
ZEND_FETCH_RESOURCE(handle, php_xslt *, processor_p, -1, le_xslt_name, le_xslt);
- RETURN_STRING(XSLT_ERRSTR(handle), 1);
+ if(XSLT_ERRSTR(handle)) {
+ RETURN_STRING(XSLT_ERRSTR(handle), 1);
+ } else {
+ RETURN_FALSE;
+ }
}
/* }}} */