Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/Context/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,15 @@ private static function get_process_env_variables(): array {
}
}

// An ImageMagick that is not installed where it was built, like the one setup-php provides on
// macOS, is pointed at its coders and configuration through these. Without them, Imagick
// supports none of the formats that ImageMagick provides as modules, PDF among them.
foreach ( (array) getenv() as $key => $value ) {
if ( 0 === strpos( (string) $key, 'MAGICK_' ) ) {
$env[ $key ] = $value;
}
}

if ( self::running_with_code_coverage() ) {
$has_coverage_driver = ( new Runtime() )->hasXdebug() || ( new Runtime() )->hasPCOV();

Expand Down
Loading