3.0.1
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
- remove useless code (#1)
- confim to support until PHP 8.0 (#3)
- enhanced argument order of filebin function (#4)
- enhanced Warning messges (#5)
- change package name to mod_magic from mod_filebin (#6)
- improved usage documents (#7)
- change return type of filemagic function (#8)
- suport check buffer (#9)
- support filebin function for previous compability (#10)