From: Anatol Belski Date: Fri, 19 Sep 2014 09:42:44 +0000 (+0200) Subject: fix condition X-Git-Tag: POST_NATIVE_TLS_MERGE^2~195 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b7d255cd978a516fe83f853aa0d10f96c654479;p=php fix condition --- diff --git a/ext/phar/tar.c b/ext/phar/tar.c index 985abd14a9..76862f7cdb 100644 --- a/ext/phar/tar.c +++ b/ext/phar/tar.c @@ -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;