File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ` .
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments