Skip to content

Commit d655294

Browse files
authored
Merge pull request #275 from thecodingmachine/php8.1-xdebug
Fix php8.1-xdebug
2 parents 9a7abdb + 9d02e23 commit d655294

File tree

5 files changed

+16
-22
lines changed

5 files changed

+16
-22
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ For more information, see the [CONTRIBUTING](CONTRIBUTING.md) guide.
99

1010
<!-- Summary of the PR -->
1111

12-
This PR fixes/implements the following **bugs/features**
12+
This PR fixes/implements :
1313

14-
* [ ] Bug 1
15-
* [ ] Bug 2
16-
* [ ] Feature 1
17-
* [ ] Feature 2
14+
* [ ] Bug <!-- Put `closes #XXXX` in your comment to auto-close the issue -->
15+
* [ ] Feature
1816
* [ ] Breaking changes
1917

2018
<!-- You can skip this if you're fixing a typo or adding an app to the Showcase. -->
@@ -27,13 +25,8 @@ Explain the **motivation** for making this change. What existing problem does th
2725

2826
Demonstrate the code is solid. Example: The exact commands you ran and their output.
2927

30-
**Closing issues**
31-
32-
<!-- Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if such). -->
33-
Fixes #
34-
3528
**Checklist**
3629

37-
- [ ] Have you followed the guidelines in our [CONTRIBUTING](CONTRIBUTING.md) guide?
30+
- [ ] I followed the guidelines in [CONTRIBUTING](CONTRIBUTING.md) guide
3831
- [ ] I have squashed any insignificant commits
3932
- [ ] This change has comments for package types, values, functions, and non-obvious lines of code

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ Below is a list of extensions available in this image:
187187
- *mcrypt* is not available anymore in PHP 7.3+
188188
- *weakref* is not compatible with PHP 7.3+ (but weak references were added to the PHP core in PHP 7.4)
189189
- *sybase* extension is not available in v4 (use v3)
190-
- *ev*, *event*, *gnupg*, *uploadprogress*, *xmlrpc* are not available in PHP 8.0+
191-
- *amqp*, *apcu*, *ast*, *ds*, *gettext*, *grpc*, *igbinary*, *imagick*, *mailparse*, *memcached*, *mongodb*, *msgpack*, *mysqli*, *pcov*, *rdkafka*, *redis*, *swoole*, *uploadprogress*, *uuid*, *xdebug*, *yaml* are not available in PHP 8.1+ (RC)
190+
- *event*, *gnupg*, *uploadprogress*, *xmlrpc* are not available in PHP 8.0+
191+
- *amqp*, *apcu*, *ast*, *blackfire*, *ds*, *gettext*, *grpc*, *ev*, *igbinary*, *imagick*, *mailparse*, *memcached*, *mongodb*, *msgpack*, *mysqli*, *pcov*, *rdkafka*, *redis*, *swoole*, *uploadprogress*, *uuid*, *yaml* are not available in PHP 8.1+ (RC)
192192

193193
### Enabling/disabling extensions in the fat image
194194

build-and-test.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,16 @@ RESULT=`docker run --rm -e CRON_SCHEDULE_1="* * * * * * *" -e CRON_COMMAND_1="wh
191191
#[[ "$?" = "1" ]]
192192
#set -e
193193

194-
if [[ "${PHP_VERSION}" != "8.1" ]]; then
195-
# Let's check that the "xdebug.client_host" contains a value different from "no value"
196-
docker run --rm -e PHP_EXTENSION_XDEBUG=1 thecodingmachine/php:${PHP_VERSION}-${BRANCH}-${BRANCH_VARIANT} php -i | grep xdebug.client_host| grep -v "no value"
194+
# Let's check that the "xdebug.client_host" contains a value different from "no value"
195+
docker run --rm -e PHP_EXTENSION_XDEBUG=1 thecodingmachine/php:${PHP_VERSION}-${BRANCH}-${BRANCH_VARIANT} php -i | grep xdebug.client_host| grep -v "no value"
197196

198-
# Let's check that "xdebug.mode" is set to "debug" by default
199-
docker run --rm -e PHP_EXTENSION_XDEBUG=1 thecodingmachine/php:${PHP_VERSION}-${BRANCH}-${BRANCH_VARIANT} php -i | grep xdebug.mode| grep "debug"
197+
# Let's check that "xdebug.mode" is set to "debug" by default
198+
docker run --rm -e PHP_EXTENSION_XDEBUG=1 thecodingmachine/php:${PHP_VERSION}-${BRANCH}-${BRANCH_VARIANT} php -i | grep xdebug.mode| grep "debug"
200199

201-
# Let's check that "xdebug.mode" is properly overridden
202-
docker run --rm -e PHP_EXTENSION_XDEBUG=1 -e PHP_INI_XDEBUG__MODE=debug,coverage thecodingmachine/php:${PHP_VERSION}-${BRANCH}-${BRANCH_VARIANT} php -i | grep xdebug.mode| grep "debug,coverage"
200+
# Let's check that "xdebug.mode" is properly overridden
201+
docker run --rm -e PHP_EXTENSION_XDEBUG=1 -e PHP_INI_XDEBUG__MODE=debug,coverage thecodingmachine/php:${PHP_VERSION}-${BRANCH}-${BRANCH_VARIANT} php -i | grep xdebug.mode| grep "debug,coverage"
203202

203+
if [[ "${PHP_VERSION}" != "8.1" ]]; then
204204
# Tests that blackfire + xdebug will output an error
205205
RESULT=`docker run --rm -e PHP_EXTENSION_XDEBUG=1 -e PHP_EXTENSION_BLACKFIRE=1 thecodingmachine/php:${PHP_VERSION}-${BRANCH}-${BRANCH_VARIANT} php -v 2>&1 | grep 'WARNING: Both Blackfire and Xdebug are enabled. This is not recommended as the PHP engine may not behave as expected. You should strongly consider disabling Xdebug or Blackfire.'`
206206
[[ "$RESULT" = "WARNING: Both Blackfire and Xdebug are enabled. This is not recommended as the PHP engine may not behave as expected. You should strongly consider disabling Xdebug or Blackfire." ]]

extensions/8.1/xdebug

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../core/xdebug

utils/README.blueprint.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ Below is a list of extensions available in this image:
105105
- *mcrypt* is not available anymore in PHP 7.3+
106106
- *weakref* is not compatible with PHP 7.3+ (but weak references were added to the PHP core in PHP 7.4)
107107
- *sybase* extension is not available in v4 (use v3)
108-
- *ev*, *event*, *gnupg*, *uploadprogress*, *xmlrpc* are not available in PHP 8.0+
109-
- *amqp*, *apcu*, *ast*, *ds*, *gettext*, *grpc*, *igbinary*, *imagick*, *mailparse*, *memcached*, *mongodb*, *msgpack*, *mysqli*, *pcov*, *rdkafka*, *redis*, *swoole*, *uploadprogress*, *uuid*, *xdebug*, *yaml* are not available in PHP 8.1+ (RC)
108+
- *event*, *gnupg*, *uploadprogress*, *xmlrpc* are not available in PHP 8.0+
109+
- *amqp*, *apcu*, *ast*, *blackfire*, *ds*, *gettext*, *grpc*, *ev*, *igbinary*, *imagick*, *mailparse*, *memcached*, *mongodb*, *msgpack*, *mysqli*, *pcov*, *rdkafka*, *redis*, *swoole*, *uploadprogress*, *uuid*, *yaml* are not available in PHP 8.1+ (RC)
110110

111111
### Enabling/disabling extensions in the fat image
112112

0 commit comments

Comments
 (0)