]> granicus.if.org Git - php/commit
Make finfo_open() $magic_database nullable
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 10 Feb 2021 11:18:42 +0000 (12:18 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 10 Feb 2021 11:18:42 +0000 (12:18 +0100)
commitfd5ff37db77b52b39d97c5749dcbbf4b09c10d9d
treecdbbdf9b3a4af8ff9b0fe0f96d1a0cb3e5deefd0
parentce7935e82a31a312852c6fa738b10a8223bd8a7a
Make finfo_open() $magic_database nullable

Empty string was interpreted as a special value here, which indicates
that the default magic database should be used. It makes more sense
to use null for this purpose.

The documentation also explicitly mentions that null can be used.
ext/fileinfo/fileinfo.c
ext/fileinfo/fileinfo.stub.php
ext/fileinfo/fileinfo_arginfo.h