summaryrefslogtreecommitdiff
path: root/ext/tidy/tidy.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tidy/tidy.c')
-rw-r--r--ext/tidy/tidy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c
index edd0bcf85e..41d268218a 100644
--- a/ext/tidy/tidy.c
+++ b/ext/tidy/tidy.c
@@ -28,6 +28,7 @@
#if HAVE_TIDY
#include "php_ini.h"
+#include "zend_exceptions.h"
#include "ext/standard/info.h"
#include "tidy.h"
@@ -1816,7 +1817,7 @@ static TIDY_NODE_METHOD(getParent)
__constructor for tidyNode. */
static TIDY_NODE_METHOD(__construct)
{
- php_error_docref(NULL, E_ERROR, "You should not create a tidyNode manually");
+ zend_throw_error(zend_ce_error, "You should not create a tidyNode manually");
}
/* }}} */