]> granicus.if.org Git - php/commitdiff
Don't check executability
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 16 Mar 2021 13:30:24 +0000 (14:30 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 16 Mar 2021 13:36:10 +0000 (14:36 +0100)
As $(PHP) is not an absolute path, test -x doesn't do anything
meaningful. Rely on the autoconf check.

Zend/Makefile.frag
build/Makefile.global

index 1e5023b2042e8b409c31ba0de604cb5e2999cc9d..e53d3fd209d1e94441b07b85f1b820eb4021d6f9 100644 (file)
@@ -32,8 +32,8 @@ $(srcdir)/zend_ini_parser.c: $(srcdir)/zend_ini_parser.y
 $(srcdir)/zend_ini_scanner.c: $(srcdir)/zend_ini_scanner.l
        @(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt Zend/zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c Zend/zend_ini_scanner.l)
 
-$(srcdir)/zend_vm_execute.h: $(srcdir)/zend_vm_def.h $(srcdir)/zend_vm_execute.skl $(srcdir)/zend_vm_gen.php
-       @if test ! -z "$(PHP)" && test -x "$(PHP)"; then \
+$(srcdir)/zend_vm_execute.h $(srcdir)/zend_vm_opcodes.c: $(srcdir)/zend_vm_def.h $(srcdir)/zend_vm_execute.skl $(srcdir)/zend_vm_gen.php
+       @if test ! -z "$(PHP)"; then \
                $(PHP) $(srcdir)/zend_vm_gen.php; \
        fi;
 
index cc21973f184af8437a363826a5d81a62006214d8..2ff838cb3318dee8a01c09b6326a2657f20948bf 100644 (file)
@@ -144,7 +144,7 @@ prof-use:
 
 %_arginfo.h: %.stub.php
        @if test -e "$(top_srcdir)/build/gen_stub.php"; then \
-               if test ! -z "$(PHP)" && test -x "$(PHP)"; then \
+               if test ! -z "$(PHP)"; then \
                        echo Parse $< to generate $@;\
                        $(PHP) $(top_srcdir)/build/gen_stub.php $<; \
                fi; \