Skip to content

Commit ccbcf29

Browse files
committed
[compile_php_exts.sh] Add Decimal Extension
Signed-off-by: Jack Cherng <[email protected]>
1 parent 8eb9992 commit ccbcf29

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

general/web_server/compile_php_exts.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
extension=apcu.so
55
extension=ast.so
6+
extension=decimal.so
67
extension=ds.so
78
extension=event.so
89
extension=hashids.so

general/web_server/compile_php_exts.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ PHP_BASE_DIRS=(
2121
declare -A PHP_EXTS_CMD=(
2222
["apcu"]="git clone https://github.com/krakjoe/apcu.git apcu"
2323
["ast"]="git clone https://github.com/nikic/php-ast.git ast"
24+
["decimal"]="git clone https://github.com/php-decimal/ext-decimal.git decimal"
2425
["ds"]="git clone https://github.com/php-ds/extension.git ds"
2526
["event"]="git clone https://bitbucket.org/osmanov/pecl-event.git event"
2627
["hashids"]="git clone https://github.com/cdoco/hashids.phpc.git hashids"
@@ -86,12 +87,14 @@ echo "==================================="
8687
# yum
8788
if command -v yum >/dev/null 2>&1; then
8889
yum install -y \
90+
mpdecimal mpdecimal-devel \
8991
libsodium libsodium-devel \
9092
ImageMagick ImageMagick-devel ImageMagick-perl
9193
# apt
9294
elif command -v apt >/dev/null 2>&1; then
9395
apt update
9496
apt install -y \
97+
libmpdec libmpdec-dev \
9598
libsodium23 libsodium-dev
9699
else
97100
echo "Could not find 'yum' or 'apt'..."

0 commit comments

Comments
 (0)