Skip to content

Commit 779e440

Browse files
committed
Move legacy mcrypt install to same core file
1 parent a815960 commit 779e440

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

extensions/core/mcrypt-7.1/install.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

extensions/core/mcrypt/install.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33
set -e
44
# Comments: MCrypt is deprecated and usage is generally discouraged. Provided here for legacy apps only.
55

6-
export USE_PECL=1
7-
export PECL_EXTENSION=mcrypt-1.0.1
8-
export PHP_EXT_NAME=mcrypt # name of the extension (to put in PHP_EXTENSIONS variable)
9-
export DEV_DEPENDENCIES="libmcrypt-dev"
10-
export DEPENDENCIES="libmcrypt4"
6+
if false; then # legacy install
7+
export USE_PECL=1
8+
export PECL_EXTENSION=mcrypt-1.0.1
9+
export PHP_EXT_NAME=mcrypt # name of the extension (to put in PHP_EXTENSIONS variable)
10+
export DEV_DEPENDENCIES="libmcrypt-dev"
11+
export DEPENDENCIES="libmcrypt4"
12+
else # Regular install
13+
export EXTENSION=mcrypt
14+
export DEV_DEPENDENCIES="libmcrypt-dev"
15+
export DEPENDENCIES="libmcrypt4"
16+
fi
1117

1218
../docker-install.sh

0 commit comments

Comments
 (0)