From d0f52e184b539e75473f2d7a3a9b5c399c138c7f Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Mon, 23 Dec 2024 13:31:14 +0000 Subject: [PATCH] Add CURL extension --- tests/launch.php | 1 + tests/launch.sh | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/launch.php b/tests/launch.php index 0ece8cd0..2a21ef7d 100644 --- a/tests/launch.php +++ b/tests/launch.php @@ -160,6 +160,7 @@ function printLaunchHelp() */ $phpExtensions = array( 'bcmath' => null, + 'curl' => null, 'gd' => null, 'imagick' => null, 'json' => null, diff --git a/tests/launch.sh b/tests/launch.sh index bf24718d..3536806f 100755 --- a/tests/launch.sh +++ b/tests/launch.sh @@ -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}" \