Skip to content

Commit 92d6f26

Browse files
committed
Merge branch 'master' of git.php.net:/php-src
* 'master' of git.php.net:/php-src: Allow pecl like usage in ext/phar, closes #2955
2 parents 56d2147 + 8946334 commit 92d6f26

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ext/phar/Makefile.frag

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
$(srcdir)/phar_path_check.c: $(srcdir)/phar_path_check.re
2-
@(cd $(top_srcdir); $(RE2C) --no-generation-date -b -o ext/phar/phar_path_check.c ext/phar/phar_path_check.re)
2+
@(cd $(top_srcdir); \
3+
if test -f ./php_phar.h; then \
4+
$(RE2C) --no-generation-date -b -o phar_path_check.c phar_path_check.re; \
5+
else \
6+
$(RE2C) --no-generation-date -b -o ext/phar/phar_path_check.c ext/phar/phar_path_check.re; \
7+
fi)
38

49
pharcmd: $(builddir)/phar.php $(builddir)/phar.phar
510

0 commit comments

Comments
 (0)