diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index d5f7b019eb9..604b4033eb1 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -628,7 +628,6 @@ int php_zip_glob(char *pattern, int pattern_len, zend_long flags, zval *return_v can be used for simple glob() calls without further error checking. */ - array_init(return_value); return 0; } #endif @@ -637,7 +636,6 @@ int php_zip_glob(char *pattern, int pattern_len, zend_long flags, zval *return_v /* now catch the FreeBSD style of "no matches" */ if (!globbuf.gl_pathc || !globbuf.gl_pathv) { - array_init(return_value); return 0; }