File tree 6 files changed +18
-8
lines changed 6 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -380,8 +380,8 @@ RUN make && make install
380
380
# libicu-devel : needed for intl
381
381
# libxslt-devel : needed for the XSL extension
382
382
# sqlite-devel : Since PHP 7.4 this must be installed (https://github.com/php/php-src/blob/99b8e67615159fc600a615e1e97f2d1cf18f14cb/UPGRADING#L616-L619)
383
- RUN LD_LIBRARY_PATH= yum install -y readline- devel gettext-devel libicu-devel libxslt-devel sqlite-devel
384
-
383
+ # libffi- devel : needed for the FFI extension
384
+ RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel libxslt-devel sqlite-devel libffi-devel
385
385
386
386
# Note: this variable is used when building extra/custom extensions, do not remove
387
387
ENV PHP_BUILD_DIR=/tmp/php
@@ -449,6 +449,7 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
449
449
--enable-intl=shared \
450
450
--enable-soap \
451
451
--with-xsl=${INSTALL_DIR} \
452
+ --with-ffi \
452
453
# necessary for `pecl` to work (to install PHP extensions)
453
454
--with-pear \
454
455
# extra compilation flags
Original file line number Diff line number Diff line change @@ -401,7 +401,8 @@ RUN make && make install
401
401
# gettext-devel : needed for the --with-gettext flag
402
402
# libicu-devel : needed for intl
403
403
# libxslt-devel : needed for the XSL extension
404
- RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel libxslt-devel
404
+ # libffi-devel : needed for the FFI extension
405
+ RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel libxslt-devel libffi-devel
405
406
406
407
407
408
# Note: this variable is used when building extra/custom extensions, do not remove
@@ -470,6 +471,7 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
470
471
--enable-intl=shared \
471
472
--enable-soap \
472
473
--with-xsl=${INSTALL_DIR} \
474
+ --with-ffi \
473
475
# necessary for `pecl` to work (to install PHP extensions)
474
476
--with-pear \
475
477
# extra compilation flags
Original file line number Diff line number Diff line change @@ -401,7 +401,8 @@ RUN make && make install
401
401
# gettext-devel : needed for the --with-gettext flag
402
402
# libicu-devel : needed for intl
403
403
# libxslt-devel : needed for the XSL extension
404
- RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel libxslt-devel
404
+ # libffi-devel : needed for the FFI extension
405
+ RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel libxslt-devel libffi-devel
405
406
406
407
407
408
# Note: this variable is used when building extra/custom extensions, do not remove
@@ -470,6 +471,7 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
470
471
--enable-intl=shared \
471
472
--enable-soap \
472
473
--with-xsl=${INSTALL_DIR} \
474
+ --with-ffi \
473
475
# necessary for `pecl` to work (to install PHP extensions)
474
476
--with-pear \
475
477
# extra compilation flags
Original file line number Diff line number Diff line change @@ -401,7 +401,8 @@ RUN make && make install
401
401
# gettext-devel : needed for the --with-gettext flag
402
402
# libicu-devel : needed for intl
403
403
# libxslt-devel : needed for the XSL extension
404
- RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel libxslt-devel
404
+ # libffi-devel : needed for the FFI extension
405
+ RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel libxslt-devel libffi-devel
405
406
406
407
407
408
# Note: this variable is used when building extra/custom extensions, do not remove
@@ -470,6 +471,7 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
470
471
--enable-intl=shared \
471
472
--enable-soap \
472
473
--with-xsl=${INSTALL_DIR} \
474
+ --with-ffi \
473
475
# necessary for `pecl` to work (to install PHP extensions)
474
476
--with-pear \
475
477
# extra compilation flags
Original file line number Diff line number Diff line change @@ -404,7 +404,8 @@ RUN make && make install
404
404
# gettext-devel : needed for the --with-gettext flag
405
405
# libicu-devel : needed for intl
406
406
# libxslt-devel : needed for the XSL extension
407
- RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel libxslt-devel
407
+ # libffi-devel : needed for the FFI extension
408
+ RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel libxslt-devel libffi-devel
408
409
409
410
410
411
# Note: this variable is used when building extra/custom extensions, do not remove
@@ -471,6 +472,7 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
471
472
--enable-intl=shared \
472
473
--enable-soap \
473
474
--with-xsl=${INSTALL_DIR} \
475
+ --with-ffi \
474
476
# necessary for `pecl` to work (to install PHP extensions)
475
477
--with-pear \
476
478
# extra compilation flags
Original file line number Diff line number Diff line change 64
64
'readline ' => READLINE_LIB === 'readline ' ,
65
65
'reflection ' => class_exists (\ReflectionClass::class),
66
66
'session ' => session_status () === PHP_SESSION_NONE ,
67
+ 'ffi ' => class_exists (\FFI ::class),
67
68
'zip ' => class_exists (\ZipArchive::class),
68
69
'zlib ' => md5 (gzcompress ('abcde ' )) === 'db245560922b42f1935e73e20b30980e ' ,
69
70
];
94
95
if ($ private_key === false ) {
95
96
return false ;
96
97
}
97
-
98
+
98
99
$ public_key_pem = openssl_pkey_get_details ($ private_key )['key ' ];
99
100
$ details = openssl_pkey_get_details (openssl_pkey_get_public ($ public_key_pem ));
100
101
return $ details ['bits ' ] === 2048 ;
101
- })(),
102
+ })(),
102
103
'json ' => function_exists ('json_encode ' ),
103
104
'bcmath ' => function_exists ('bcadd ' ),
104
105
'ctype ' => function_exists ('ctype_digit ' ),
You can’t perform that action at this time.
0 commit comments