Skip to content

Commit 634708a

Browse files
authored
Add pcre as a configure step dependency to fileinfo (php#15349)
The pcre is a required dependency in fileinfo extenstion. This marks it as a configure step dependency for consistency with other extensions and to have extensions properly sorted in the generated internal_functions* files.
1 parent 693ec80 commit 634708a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ext/fileinfo/config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ if test "$PHP_FILEINFO" != "no"; then
4141
[$ext_shared],,
4242
[-I@ext_srcdir@/libmagic])
4343
PHP_ADD_BUILD_DIR([$ext_builddir/libmagic])
44+
PHP_ADD_EXTENSION_DEP(fileinfo, pcre)
4445

4546
AC_CHECK_FUNCS([utimes strndup])
4647

ext/fileinfo/config.w32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ if (PHP_FILEINFO != 'no') {
1111
strcasestr.c buffer.c is_csv.c";
1212

1313
EXTENSION('fileinfo', 'fileinfo.c php_libmagic.c', true, "/I" + configure_module_dirname + "/libmagic /I" + configure_module_dirname);
14+
ADD_EXTENSION_DEP('fileinfo', 'pcre');
1415
ADD_SOURCES(configure_module_dirname + '\\libmagic', LIBMAGIC_SOURCES, "fileinfo");
1516
}

0 commit comments

Comments
 (0)