summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-09-19 11:42:44 +0200
committerAnatol Belski <ab@php.net>2014-09-19 11:42:44 +0200
commit9b7d255cd978a516fe83f853aa0d10f96c654479 (patch)
tree25fbdced1eea4c7c9bef7f08ebd96dcabef11f8b /ext
parentbf7203e1e02f1313a3fd8beb3bbdb102a77f1388 (diff)
downloadphp-git-9b7d255cd978a516fe83f853aa0d10f96c654479.tar.gz
fix condition
Diffstat (limited to 'ext')
-rw-r--r--ext/phar/tar.c2
1 files changed, 1 insertions, 1 deletions
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;