Skip to content

Commit

Permalink
Add CURL extension
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaasuni committed Dec 23, 2024
1 parent 818abfa commit d0f52e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/launch.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ function printLaunchHelp()
*/
$phpExtensions = array(
'bcmath' => null,
'curl' => null,
'gd' => null,
'imagick' => null,
'json' => null,
Expand Down
8 changes: 7 additions & 1 deletion tests/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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}" \
Expand Down

0 comments on commit d0f52e1

Please sign in to comment.