]> granicus.if.org Git - php/commitdiff
fix condition
authorAnatol Belski <ab@php.net>
Fri, 19 Sep 2014 09:42:44 +0000 (11:42 +0200)
committerAnatol Belski <ab@php.net>
Fri, 19 Sep 2014 09:42:44 +0000 (11:42 +0200)
ext/phar/tar.c

index 985abd14a9176e10da65cc888b15af50b9e86d68..76862f7cdb1be461f53ba71b07af9775cc956e7c 100644 (file)
@@ -570,7 +570,7 @@ bail:
                        phar_destroy_phar_data(myphar TSRMLS_CC);
                        return FAILURE;
                }
-       } while (read != 0);
+       } while (!php_stream_eof(fp));
 
        if (zend_hash_str_exists(&(myphar->manifest), ".phar/stub.php", sizeof(".phar/stub.php")-1)) {
                myphar->is_data = 0;