mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
Restored the good part of 74ee335
that was just reverted.
This commit is contained in:
parent
c6e15455a3
commit
067603106e
@ -92,6 +92,7 @@ private const char *file_or_stream(struct magic_set *, const char *, php_stream
|
||||
#endif
|
||||
|
||||
/* XXX this functionality is excluded in php, enable it in apprentice.c:340 */
|
||||
#if 0
|
||||
private const char *
|
||||
get_default_magic(void)
|
||||
{
|
||||
@ -215,6 +216,7 @@ magic_getpath(const char *magicfile, int action)
|
||||
|
||||
return action == FILE_LOAD ? get_default_magic() : MAGIC;
|
||||
}
|
||||
#endif
|
||||
|
||||
public struct magic_set *
|
||||
magic_open(int flags)
|
||||
|
Loading…
Reference in New Issue
Block a user