Merge branch 'PHP-5.6' into PHP-7.0

Conflicts:
	ext/zip/php_zip.c
This commit is contained in:
Xinchen Hui 2016-02-09 23:35:55 +08:00
commit 33417bf409

View file

@ -2668,7 +2668,7 @@ static ZIPARCHIVE_METHOD(extractTo)
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))) {
if (!file || !php_zip_extract_file(intern, pathto, file, strlen(file))) {
RETURN_FALSE;
}
}