Skip to content

Commit 73142f9

Browse files
committed
Fix bug #65106: PHP fails to compile ext/fileinfo
Provide an alternative data_file_string.c to data_string.c, which uses drastically less resources (CPU and RAM) with some compilers (notably GCC and Clang). Use this alternative when one of the aforementioned compilers is detected (see php#10422 (comment)).
1 parent f8f7fd2 commit 73142f9

File tree

4 files changed

+497205
-1
lines changed

4 files changed

+497205
-1
lines changed

ext/fileinfo/Makefile.frag

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
$(builddir)/libmagic/apprentice.lo: $(srcdir)/data_file.c
2+
3+
# + this dependency on gcc, clang, and other. See apprentice.c.
4+
#$(builddir)/libmagic/apprentice.lo: $(srcdir)/data_file_string.c

0 commit comments

Comments
 (0)