-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error if the file is empty #8
Comments
This is a bug, and it has already been resolved in the forthcoming release of version 3.1.0, as well as much more. In addition, version 3.0.3 will be released with the closure of this error. |
Bug fixed. Upgrade to version 3.0.3. |
Тут тоже php-zip/src/PhpZip/ZipFile.php Line 1047 in 42c0fc5
если файл пустой выкидывает exception, хотя может так и надо кстати не хватает функционала Content-Disposition: inline; чтобы не скачивало, а выводило в браузере |
Так и надо. Хотя HTTP спецификация не запрещает, поэтому в следующей версии будет поддержка пустого имени файла для сохранения.
Будет в следующей версии. |
Вышел релиз 3.1.0, в котором, среди прочего, добален недостающий функционал с Content-Disposition: inline. |
if the file exists, but it is empty (0 bytes), then an error is displayed
ErrorException (E_WARNING)
fread (): Length parameter must be greater than 0
I think this is not correct, since the file can be empty in the archive
The text was updated successfully, but these errors were encountered: