Skip to content

Commit a96de76

Browse files
committed
Don't read the local php.ini when Generating Phar
When building phar shared, you can end up loading a previous phar.so that isn't compatible with the php cli being used to generate Phar here.
1 parent 011eab1 commit a96de76

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
@@ -3,7 +3,7 @@ $(srcdir)/phar_path_check.c: $(srcdir)/phar_path_check.re
33

44
pharcmd: $(builddir)/phar.php $(builddir)/phar.phar
55

6-
PHP_PHARCMD_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0'
6+
PHP_PHARCMD_SETTINGS = -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0'
77
PHP_PHARCMD_EXECUTABLE = ` \
88
if test -x "$(top_builddir)/$(SAPI_CLI_PATH)"; then \
99
$(top_srcdir)/build/shtool echo -n -- "$(top_builddir)/$(SAPI_CLI_PATH) -n"; \

0 commit comments

Comments
 (0)