Skip to content

Commit 2977f79

Browse files
authored
Merge pull request #39 from hardyjohnson/xdebug-extensions-note
Update note on Xdebug and ionCube / SourceGuardian extension compat.
2 parents f768a77 + 2f4b23f commit 2977f79

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

configuration/xdebug.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,32 @@ When it receives the first request, PHP Storm should prompt you if the "Server"
5656
Additional configurations may be required, such as configuring ``DBGp Proxy`` port.
5757

5858
![clnt-docker-xdebug-additional-config](screenshots/phpstorm-additional-xdebug-configs.png)
59+
60+
## Xdebug and extensions (ionCube, SourceGuardian)
61+
62+
ionCube and SourceGuardian extensions are disabled by default in the Xdebug image.
63+
64+
As described in the Xdebug compatibility page: [Xdebug Supported Versions and Compatibility](https://xdebug.org/docs/compat#compat)
65+
66+
> Xdebug does not work together with other extensions that deal with PHP's internals. This is due to compatibility problems with those modules.
67+
68+
Known issues including errors and / or segfaults may occur when these extensions are enabled with Xdebug.
69+
70+
If you do wish to try running them together you can enable ionCube and/or SourceGuardian within the php-debug container
71+
by creating the following overrides within your project and restarting the debug container.
72+
73+
```
74+
./.warden/warden-env.yml
75+
services:
76+
php-debug:
77+
volumes:
78+
- ./.warden/php.d/01-ioncube-loader.ini:/etc/php.d/01-ioncube-loader.ini
79+
- ./.warden/php.d/15-sourceguardian.ini:/etc/php.d/15-sourceguardian.ini
80+
81+
./.warden/php.d/01-ioncube-loader.ini
82+
zend_extension=ioncube_loader.so;
83+
84+
./.warden/php.d/15-sourceguardian.ini:
85+
extension=sourceguardian.so
86+
87+
```

0 commit comments

Comments
 (0)