Informations
- This brnach (v3.x) is for PHP 7 and after. Do download v2.x branch for PHP 5 and before.
- The Package name has been changed to mod_filebin to mod_magic from 3.0.1
- The filebin function has been changed to filemagic.
- Function Proto Type is not changed.
- filebin function is still available for legacy.
- To the 1st argument to the filemagic function, you can input buffer data using the "DATA:" prefix instead of the file path.
$buf = filemagic ('DATA:' . file_get_content ('/some/path/image.jpg'));
Changes
- Support PHP 8.1