Add CURL extension

This commit is contained in:
nicolaasuni 2024-12-23 13:31:14 +00:00
parent 818abfae4c
commit d0f52e184b
2 changed files with 8 additions and 1 deletions

View File

@ -160,6 +160,7 @@ echo PHP_EOL;
*/
$phpExtensions = array(
'bcmath' => null,
'curl' => null,
'gd' => null,
'imagick' => null,
'json' => null,

View File

@ -34,6 +34,9 @@ echo "php extension dir: ${PHP_EXT_DIR}"
BCMATH_EXT="-d extension=$(find ${PHP_EXT_DIR} -type f -name 'bcmath.so')"
echo "bcmath found at: ${BCMATH_EXT}"
CURL_EXT="-d extension=$(find ${PHP_EXT_DIR} -type f -name 'curl.so')"
echo "curl found at: ${CURL_EXT}"
COVERAGE_EXTENSION="-d extension=pcov.so"
IMAGICK_OR_GD="-dextension=gd.so"
JSON_EXT="-dextension=json.so"
@ -86,6 +89,7 @@ for file in $EXAMPLE_FILES; do
-d date.timezone=UTC \
${IMAGICK_OR_GD} ${COVERAGE_EXTENSION} \
${BCMATH_EXT} \
${CURL_EXT} \
${JSON_EXT} \
${XML_EXT} \
-d display_errors=on \
@ -152,7 +156,9 @@ for file in $EXAMPLE_BARCODE_FILES; do
${PHP_BINARY} -n \
-d include_path="${TEMP_FOLDER}" \
-d date.timezone=UTC \
${BCMATH_EXT} ${COVERAGE_EXTENSION} \
${BCMATH_EXT} \
${CURL_EXT} \
${COVERAGE_EXTENSION} \
-d display_errors=on \
-d error_reporting=-1 \
-d pcov.directory="${ROOT_DIR}" \