Skip to content

Commit 1c8c06a

Browse files
committedMay 21, 2018
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: Allow pecl like usage in ext/pdo, refs #2955
2 parents 364fad2 + bc6ddb7 commit 1c8c06a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎ext/pdo/Makefile.frag

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ PDO_HEADER_FILES= \
77

88

99
$(srcdir)/pdo_sql_parser.c: $(srcdir)/pdo_sql_parser.re
10-
(cd $(top_srcdir); $(RE2C) --no-generation-date -o ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re)
10+
@(cd $(top_srcdir); \
11+
if test -f ./pdo_sql_parser.re; then \
12+
$(RE2C) --no-generation-date -o pdo_sql_parser.c pdo_sql_parser.re; \
13+
else \
14+
$(RE2C) --no-generation-date -o ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re; \
15+
fi)
1116

1217
install-pdo-headers:
1318
@echo "Installing PDO headers: $(INSTALL_ROOT)$(phpincludedir)/ext/pdo/"

0 commit comments

Comments
 (0)
Please sign in to comment.