Skip to content

Commit

Permalink
Fixed bug #80197
Browse files Browse the repository at this point in the history
Use "libmagic/magic.h" rather than <magic.h> to make sure that we
use the bundled libmagic, even if there is a system libmagic on the
include path.
  • Loading branch information
nikic committed Jun 14, 2021
1 parent 876bf88 commit 5dc31e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS
Expand Up @@ -16,6 +16,10 @@ PHP NEWS
. Fixed bug #81092 (fflush before stream_filter_remove corrupts stream).
(cmb)

- Fileinfo:
. Fixed bug #80197 (implicit declaration of function 'magic_stream' is
invalid). (Nikita)

- GMP:
. Fixed bug #81119 (GMP operators throw errors with wrong parameter names).
(Nikita)
Expand Down
2 changes: 1 addition & 1 deletion ext/fileinfo/fileinfo.c
Expand Up @@ -19,7 +19,7 @@
#endif
#include "php.h"

#include <magic.h>
#include "libmagic/magic.h"
/*
* HOWMANY specifies the maximum offset libmagic will look at
* this is currently hardcoded in the libmagic source but not exported
Expand Down

0 comments on commit 5dc31e0

Please sign in to comment.