Skip to content

Commit 91e31d0

Browse files
committed
- Try to fetch the necessary file via wget
1 parent dfc8044 commit 91e31d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pear/Makefile.frag

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33
peardir=$(PEAR_INSTALLDIR)
44

55
# Skip all php.ini files altogether
6-
PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0
6+
PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0 -derror_reporting=0
77

88
install-pear-installer: $(top_builddir)/sapi/cli/php
99
@$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) $(srcdir)/install-pear.phar -d "$(peardir)" -b "$(bindir)"
1010

1111
install-pear:
1212
@echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/"
13+
@if test ! -f $(srcdir)/install-pear.phar; then \
14+
wget http://pear.php.net/install-pear.phar -nd -P $(srcdir); \
15+
fi
1316
@if test -f $(srcdir)/install-pear.phar && $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \
1417
$(MAKE) -s install-pear-installer; \
1518
else \

0 commit comments

Comments
 (0)