Skip to content

Commit 5dc31e0

Browse files
committed
Fixed bug #80197
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.
1 parent 876bf88 commit 5dc31e0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ PHP NEWS
1616
. Fixed bug #81092 (fflush before stream_filter_remove corrupts stream).
1717
(cmb)
1818

19+
- Fileinfo:
20+
. Fixed bug #80197 (implicit declaration of function 'magic_stream' is
21+
invalid). (Nikita)
22+
1923
- GMP:
2024
. Fixed bug #81119 (GMP operators throw errors with wrong parameter names).
2125
(Nikita)

ext/fileinfo/fileinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#endif
2020
#include "php.h"
2121

22-
#include <magic.h>
22+
#include "libmagic/magic.h"
2323
/*
2424
* HOWMANY specifies the maximum offset libmagic will look at
2525
* this is currently hardcoded in the libmagic source but not exported

0 commit comments

Comments
 (0)