Browse Source

Let's not crash when no error str has been set

experimental/ZendEngine2
Rasmus Lerdorf 25 years ago
parent
commit
ff3774d1ee
  1. 6
      ext/xslt/sablot.c

6
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;
}
}
/* }}} */

Loading…
Cancel
Save