Skip to content

Commit 61e11f4

Browse files
committed
Update CHANGELOG
1 parent 15858b3 commit 61e11f4

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
## [Unreleased]
2+
* Break: this is a major release, see [UPGRADE.md](UPGRADE.md) for more information.
3+
* Break: removed optional `$colorOption` constructor param and passthru fallback.
4+
* Break: renamed `requiresRestart` param from `$isLoaded` to `$default`.
5+
* Break: changed `restart` param `$command` from a string to an array.
6+
* Added: support for Xdebug3 to only restart if Xdebug is not running with `xdebug.mode=off`.
7+
* Added: `isXdebugActive()` method to determine if Xdebug is still running in the restart.
8+
* Added: feature to bypass the shell in PHP-7.4+ by giving `proc_open` an array of arguments.
9+
* Added: Process utility class to the API.
210

311
## [1.4.6] - 2021-03-25
412
* Fixed: fail restart if `proc_open` has been disabled in `disable_functions`.

UPGRADE.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Upgrading from 1.x
2+
3+
The default behaviour has changed from always restarting if Xdebug is loaded, to only restarting if
4+
Xdebug is _active_. This has been introduced to support Xdebug3
5+
[modes](https://xdebug.org/docs/all_settings#mode). Xdebug is considered active if it is loaded, and
6+
for Xdebug3, if it is running in a mode other than `xdebug.mode=off`.
7+
8+
* Break: removed optional `$colorOption` constructor param and passthru fallback.
9+
10+
Just use `new XdebugHandler('myapp')` to instantiate the class and color support will be
11+
detectable in the restarted process.
12+
13+
* Added: `isXdebugActive()` method to determine if Xdebug is still running in the restart.
14+
15+
Returns true if Xdebug is loaded and is running in an active mode (if it supports modes).
16+
Returns false if Xdebug is not loaded, or it is running with `xdebug.mode=off`.
17+
18+
### Extending classes
19+
20+
* Break: renamed `requiresRestart` param from `$isLoaded` to `$default`.
21+
22+
This reflects the new default behaviour which is to restart only if Xdebug is active.
23+
24+
* Break: changed `restart` param `$command` from a string to an array.
25+
26+
Only important if you modified the string. `$command` is now an array of unescaped arguments.
27+
28+
* Added: Process utility class to the API.
29+
30+
This class was previously annotated as @internal and has been refactored due to recent changes.

0 commit comments

Comments
 (0)