Skip to content

Commit a24f95a

Browse files
Resolve php#11099 in case of a debug-zts-asan build
1 parent 96ea06a commit a24f95a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/phar/Makefile.frag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $(builddir)/phar/phar.inc: $(srcdir)/phar/phar.inc
3131

3232

3333
TEST_PHP_EXECUTABLE = $(shell $(PHP_EXECUTABLE) -v 2>&1)
34-
TEST_PHP_EXECUTABLE_RES = $(shell echo "$(TEST_PHP_EXECUTABLE)" | grep -c 'Exec format error')
34+
TEST_PHP_EXECUTABLE_RES = $(shell [ -z "$(TEST_PHP_EXECUTABLE)" ] || echo "$(TEST_PHP_EXECUTABLE)" | grep -q "Exec format error" && echo 1 || echo 0)
3535

3636
$(builddir)/phar.php: $(srcdir)/build_precommand.php $(srcdir)/phar/*.inc $(srcdir)/phar/*.php $(SAPI_CLI_PATH)
3737
-@(echo "Generating phar.php"; \

0 commit comments

Comments
 (0)