K
K
khodos_dmitry2017-05-06 11:22:32
PHP
khodos_dmitry, 2017-05-06 11:22:32

Why doesn't the parser check the file for zero size?

https://gist.github.com/diman3210/bf9989c17f970e76...
Line 194 checks if the file is zero. But for some reason, files with zero size are still written to the database.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
7
7365656c65, 2017-05-06
@73656c6565

Check how exactly the value of $driver_size looks like (with a separate script on one file, compare with it). It might be worth trying to compare against null/false.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question