Closed QuixThe2nd closed 3 years ago
Not sure how this happened. playtime_seconds
should be a float
or int
. And there is already !empty($info['playtime_seconds'])
in this condition, which means it is not null
/''
/(int) 0
/(float) 0.0
/(string) '0'
. Do you have information about the value in this variable? Maybe there are some other bug related to playtime_seconds
.
Can you provide a sample file that triggers a divide-by-zero error?
Looks like this has already been fixed by https://github.com/JamesHeinrich/getID3/pull/291 and https://github.com/JamesHeinrich/getID3/commit/34a0bb2db147633173bcf5db5e72f5195eba3d3e, but there are no new release yet.
As mentioned by StudioMaX above this is already fixed, and there v1.9.21 has since been released including that change.
Fixes following error: Uncaught DivisionByZeroError: Division by zero