Skip to content

Commit b0ba368

Browse files
committed
Fix GH-11408: Unable to build PHP 8.3.0 alpha 1 / fileinfo extension
On some configurations, the COMPILE_DL_FILEINFO must come from the config.h file. If the COMPILE_DL_FILEINFO macro is not set, the build won't include the ZEND_GET_MODULE block necessary for building this extension as a shared object. Closes GH-11505.
1 parent d8ee89d commit b0ba368

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

NEWS

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ PHP NEWS
66
. Fixed bug GH-11507 (String concatenation performance regression in 8.3).
77
(nielsdos)
88

9+
- Fileinfo:
10+
. Fix GH-11408 (Unable to build PHP 8.3.0 alpha 1 / fileinfo extension).
11+
(nielsdos)
12+
913
- MBString:
1014
. Implement mb_str_pad() RFC. (nielsdos)
1115

ext/fileinfo/fileinfo.c

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
+----------------------------------------------------------------------+
1515
*/
1616

17+
#ifdef HAVE_CONFIG_H
18+
#include "config.h"
19+
#endif
1720
#include "php.h"
1821

1922
#include "libmagic/magic.h"

0 commit comments

Comments
 (0)