diff options
author | Pierre Joye <pajoye@php.net> | 2011-02-01 10:57:51 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2011-02-01 10:57:51 +0000 |
commit | 973ca132a4dd938f8400a35fa55b832f2b1f102a (patch) | |
tree | 70482d99279710263fa27d651eb58f431f4cb1b3 /ext/zip | |
parent | e08473da6c6a252c44714139b9528ce409a7407f (diff) | |
download | php-git-973ca132a4dd938f8400a35fa55b832f2b1f102a.tar.gz |
- WS
Diffstat (limited to 'ext/zip')
-rw-r--r-- | ext/zip/php_zip.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index f46a1475dc..8dcbd0e7e9 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -2418,21 +2418,21 @@ static ZIPARCHIVE_METHOD(extractTo) break; } } else { - /* Extract all files */ - int filecount = zip_get_num_files(intern); - - if (filecount == -1) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Illegal archive"); - RETURN_FALSE; - } - - for (i = 0; i < filecount; i++) { - char *file = (char*)zip_get_name(intern, i, ZIP_FL_UNCHANGED); - if (!php_zip_extract_file(intern, pathto, file, strlen(file) TSRMLS_CC)) { - RETURN_FALSE; - } - } - } + /* Extract all files */ + int filecount = zip_get_num_files(intern); + + if (filecount == -1) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Illegal archive"); + RETURN_FALSE; + } + + for (i = 0; i < filecount; i++) { + char *file = (char*)zip_get_name(intern, i, ZIP_FL_UNCHANGED); + if (!php_zip_extract_file(intern, pathto, file, strlen(file) TSRMLS_CC)) { + RETURN_FALSE; + } + } + } RETURN_TRUE; } /* }}} */ |