Skip to content

Commit cf45479

Browse files
committed
Reuse strcasestr implementation from libmagic
1 parent 5295c35 commit cf45479

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

ext/fileinfo/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (PHP_FILEINFO != 'no') {
99
encoding.c fsmagic.c funcs.c \
1010
is_tar.c magic.c print.c \
1111
readcdf.c softmagic.c der.c \
12-
buffer.c";
12+
strcasestr.c buffer.c";
1313

1414
EXTENSION('fileinfo', 'fileinfo.c', true, "/I" + configure_module_dirname + "/libmagic /I" + configure_module_dirname);
1515
ADD_SOURCES(configure_module_dirname + '\\libmagic', LIBMAGIC_SOURCES, "fileinfo");

ext/fileinfo/libmagic/readcdf.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ static const struct nv {
7979
{ NULL, NULL, },
8080
};
8181

82-
#ifdef PHP_WIN32
83-
# define strcasestr strstr
84-
#endif
85-
8682
static const struct cv {
8783
uint64_t clsid[2];
8884
const char *mime;

0 commit comments

Comments
 (0)