You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 5, 2021. It is now read-only.
The EZ way to compile and install PHP on MacOS, Windows, and Linux. Status: pre-release, HEAVY DEVELOPMENT
3
-
---
2
+
## The EZ way to compile and install PHP on MacOS, Windows, and Linux. Status: pre-release, HEAVY DEVELOPMENT
4
3
Install Guide Coming Soon
4
+
5
+
# PLEASE NOTE:
6
+
### 1. Some PHP extensions may not be installed in all versions due to incompatibility or build errors. The PHP extensions that were removed from PHP 8 downwards are the following:
Copy file name to clipboardExpand all lines: macos/install.sh
+86-11Lines changed: 86 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,87 @@
1
1
#!/bin/bash
2
-
git checkout php-src
3
2
4
3
functioncompilePHP {
5
4
# Install All Dependencies
5
+
read -p 'Which PHP version would you like to install?[latest-7.1/latest-7.2/latest-7.3/latest-7.4/latest-8.0/latest-master] ' PHPINSTALLVERSION
6
+
7
+
if [ "$PHPINSTALLVERSION"= latest-7.1 ];then
8
+
cd ../releases/ ||exit
9
+
unzip php-src-php-7.1.32.zip -d latest-7.1
10
+
cd latest-7.1 ||exit
11
+
elif [ "$PHPINSTALLVERSION"= latest-7.2 ];then
12
+
cd ../releases/ ||exit
13
+
unzip php-src-php-7.2.33.zip -d latest-7.2
14
+
cd latest-7.2 ||exit
15
+
elif [ "$PHPINSTALLVERSION"= latest-7.3 ];then
16
+
cd ../releases/ ||exit
17
+
unzip php-src-php-7.3.22RC1.zip -d latest-7.3
18
+
cd latest-7.3 ||exit
19
+
elif [ "$PHPINSTALLVERSION"= latest-7.4 ];then
20
+
cd ../releases/ ||exit
21
+
unzip php-src-php-7.4.10RC1.zip -d latest-7.4
22
+
cd latest-7.4 ||exit
23
+
elif [ "$PHPINSTALLVERSION"= latest-8.0 ];then
24
+
read -p 'This a BETA PHP version. This software has been tested, but bugs and errors are bound to appear in this early stage. This should not be used in a production environment. Are you sure you want to install?[y/Y/n/N] ' INSTALLCHOICE
25
+
if [ "$INSTALLCHOICE"= y ] || [ "$INSTALLCHOICE"= Y ];then
26
+
cd ../releases/ ||exit
27
+
unzip php-src-php-8.0.0beta2.zip -d latest-8.0
28
+
cd latest-8.0 ||exit
29
+
elif [ "$INSTALLCHOICE"= n ] || [ "$INSTALLCHOICE"= N ];then
30
+
echo cancelling installation
31
+
exit 130
32
+
else
33
+
echo invalid argument, exiting...
34
+
exit 1
35
+
fi
36
+
elif [ "$PHPINSTALLVERSION"= latest-master ];then
37
+
read -p 'CAREFUL: This is a pre-release version and is in heavy development. Install this only if you want the latest bleeding-edge features. These may not have been tested thoroughly and should not be used in a production environment. Are you sure you want to install?[y/Y/n/N] ' INSTALLCHOICE
38
+
if [ "$INSTALLCHOICE"= y ] || [ "$INSTALLCHOICE"= Y ];then
39
+
git checkout php-src
40
+
elif [ "$INSTALLCHOICE"= n ] || [ "$INSTALLCHOICE"= N ];then
read -p 'The tests have been completed and you may or may not have had failures on some of them. This can sometimes be ignored with the latest builds, or may need extra attention. Would you like to continue with installation?[y/Y/n/N] ' ERRORRESPONSE
35
110
if [ "$ERRORRESPONSE"= y ] || [ "$ERRORRESPONSE"= Y ];then
0 commit comments