Skip to content

Commit 7819fef

Browse files
committed
Fixed bug #70917 install-pear-nozlib.phar missing
The actual bug is caused by some network error while packaged. An error check added to interrupt the packaging process if phar package download failed.
1 parent c856b6e commit 7819fef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

makedist

+5
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ sed -i 's,^#ifndef YYTOKENTYPE,#include "zend.h"\n#ifndef YYTOKENTYPE,g' $MY_OLD
119119
$ECHO_N "makedist: Attempting to download PEAR's phar archive"
120120
if test ! -x wget; then
121121
wget https://pear.php.net/install-pear-nozlib.phar -nd -P pear/
122+
if [ "x$?" != "x0" ]
123+
then
124+
$ECHO_N "Pear download failed";
125+
exit 7
126+
fi
122127
else
123128
$ECHO_N "Missing wget binary needed for pear download";
124129
exit 7

0 commit comments

Comments
 (0)