Skip to content

Commit 54854f1

Browse files
committed
MCLOUD-11525: Fix xDebug version and constrains for python3-yaml
1 parent 759c37f commit 54854f1

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

images/php/8.3-cli/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ RUN apt-get update \
7272
libyaml-dev \
7373
libzip-dev \
7474
zip \
75+
python3-yaml \
7576
&& rm -rf /var/lib/apt/lists/*
7677

7778
# Install Python packages
78-
RUN pip3 install --upgrade setuptools && pip3 install pyyaml
79+
7980

8081
# Install Grunt
8182
RUN npm install -g grunt-cli
@@ -123,8 +124,7 @@ RUN pecl install -o -f \
123124
pcov \
124125
raphf \
125126
redis \
126-
xdebug-3.2.0 \
127-
xdebug-3.2.0 \
127+
xdebug-3.3.0 \
128128
xmlrpc-1.0.0RC3 \
129129
yaml
130130

images/php/8.3-fpm/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ RUN apt-get update \
5353
libyaml-dev \
5454
libzip-dev \
5555
zip \
56+
python3-yaml \
5657
&& rm -rf /var/lib/apt/lists/*
5758

5859
# Install MailHog
@@ -98,8 +99,7 @@ RUN pecl install -o -f \
9899
pcov \
99100
raphf \
100101
redis \
101-
xdebug-3.2.0 \
102-
xdebug-3.2.0 \
102+
xdebug-3.3.0 \
103103
xmlrpc-1.0.0RC3 \
104104
yaml
105105

src/Command/Image/GeneratePhp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ private function buildDockerfile(string $dockerfile, string $phpVersion, string
287287
}
288288
}
289289

290-
if ($this->semver::satisfies($phpVersion, '8.3.*')) {
290+
if ($this->semver::satisfies($phpVersion, '>=8.2')) {
291291
$packages[] = 'python3-yaml';
292292
$pythonPackages = '';
293293
} else {

src/Compose/Php/ExtensionResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public static function getConfig(): array
429429
],
430430
'>=8.2 <8.3' => [
431431
self::EXTENSION_TYPE => self::EXTENSION_TYPE_PECL,
432-
self::EXTENSION_PACKAGE_NAME => 'xdebug-3.3.0',
432+
self::EXTENSION_PACKAGE_NAME => 'xdebug-3.2.0',
433433
],
434434
'>=8.3' => [
435435
self::EXTENSION_TYPE => self::EXTENSION_TYPE_PECL,

0 commit comments

Comments
 (0)