summaryrefslogtreecommitdiff
path: root/ext/intl/idn/idn.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/idn/idn.c')
-rw-r--r--ext/intl/idn/idn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/intl/idn/idn.c b/ext/intl/idn/idn.c
index fed184e618..1489dab9b1 100644
--- a/ext/intl/idn/idn.c
+++ b/ext/intl/idn/idn.c
@@ -27,7 +27,6 @@
#include <unicode/uidna.h>
#include <unicode/ustring.h>
-#include "zend_exceptions.h"
#include "ext/standard/php_string.h"
#include "intl_error.h"
@@ -166,7 +165,7 @@ static void php_intl_idn_to_46(INTERNAL_FUNCTION_PARAMETERS,
RETURN_FALSE;
}
if (len >= 255) {
- zend_throw_error(zend_ce_error, "ICU returned an unexpected length");
+ zend_throw_error(NULL, "ICU returned an unexpected length");
uidna_close(uts46);
zend_string_free(buffer);
RETURN_FALSE;