safe icon indicating copy to clipboard operation
safe copied to clipboard

finfo_open returns false instead of null on failure

Open dbrekelmans opened this issue 4 years ago • 1 comments

In Safe\finfo_open we throw an exception when \finfo_open returns null. But occording to the docs, the function returns false on failure instead of null. So we should be throwing an exception when \finfo_open returns false.

Returns a magic database resource on success or false on failure.

https://www.php.net/manual/en/function.finfo-open

dbrekelmans avatar Jul 28 '21 11:07 dbrekelmans

@dbrekelmans No longer reproducable, it seems.

Duroth avatar Oct 17 '21 13:10 Duroth