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.
This commit is contained in:
Niels Dossche 2023-06-22 17:47:42 +02:00 committed by nielsdos
parent d8ee89d3fa
commit b0ba368d53
2 changed files with 7 additions and 0 deletions

4
NEWS
View file

@ -6,6 +6,10 @@ PHP NEWS
. Fixed bug GH-11507 (String concatenation performance regression in 8.3).
(nielsdos)
- Fileinfo:
. Fix GH-11408 (Unable to build PHP 8.3.0 alpha 1 / fileinfo extension).
(nielsdos)
- MBString:
. Implement mb_str_pad() RFC. (nielsdos)

View file

@ -14,6 +14,9 @@
+----------------------------------------------------------------------+
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "php.h"
#include "libmagic/magic.h"