Skip to content

Commit 3b46374

Browse files
committed
Fix GH-8059 use $PHP_EXECUTABLE when $PHP not set
1 parent c7558e2 commit 3b46374

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/Makefile.global

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ prof-use:
148148
if test ! -z "$(PHP)"; then \
149149
echo Parse $< to generate $@;\
150150
$(PHP) $(top_srcdir)/build/gen_stub.php $<; \
151+
elif test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
152+
echo Parse $< to generate $@;\
153+
$(PHP_EXECUTABLE) $(top_srcdir)/build/gen_stub.php $<; \
151154
fi; \
152155
fi;
153156

0 commit comments

Comments
 (0)