diff options
author | Aaron Piotrowski <aaron@trowski.com> | 2015-07-05 02:37:49 -0500 |
---|---|---|
committer | Aaron Piotrowski <aaron@trowski.com> | 2015-07-05 12:16:57 -0500 |
commit | 907476f34c0dbe34e311c4a99cc07eb40fd2954b (patch) | |
tree | 58c26abe27284c5c221182161cb89fdc90cadc1e /ext/zip/php_zip.c | |
parent | 550bbf8f4614a5c868010195f562be3e9ee6bb00 (diff) | |
download | php-git-907476f34c0dbe34e311c4a99cc07eb40fd2954b.tar.gz |
Convert E_ERROR to thrown Error in extensions
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r-- | ext/zip/php_zip.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ } |