From 907476f34c0dbe34e311c4a99cc07eb40fd2954b Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Sun, 5 Jul 2015 02:37:49 -0500 Subject: Convert E_ERROR to thrown Error in extensions --- ext/zip/php_zip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/zip/php_zip.c') diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 85bc51f152..fca40d20f0 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -24,6 +24,7 @@ #include "php.h" #include "php_ini.h" +#include "zend_exceptions.h" #include "ext/standard/info.h" #include "ext/standard/file.h" #include "ext/standard/php_string.h" @@ -590,7 +591,7 @@ int php_zip_glob(char *pattern, int pattern_len, zend_long flags, zval *return_v globfree(&globbuf); return globbuf.gl_pathc; #else - php_error_docref(NULL, E_ERROR, "Glob support is not available"); + zend_throw_error(zend_ce_error, "Glob support is not available"); return 0; #endif /* HAVE_GLOB */ } -- cgit v1.2.1