Skip to content

Commit 5d24b43

Browse files
committed
Merged pull request xdebug#1055
* pr/1055: Fixed issue #2387: Remove INI entries for changed and removed Xdebug 2 settings
2 parents 86a3ae8 + 04746fc commit 5d24b43

3 files changed

Lines changed: 0 additions & 84 deletions

File tree

tests/base/deprecated-setting-001.phpt

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/base/deprecated-setting-003.phpt

Lines changed: 0 additions & 12 deletions
This file was deleted.

xdebug.c

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -168,36 +168,6 @@ static PHP_INI_MH(OnUpdateStartUponError)
168168
return SUCCESS;
169169
}
170170

171-
static PHP_INI_MH(OnUpdateRemovedSetting)
172-
{
173-
if (! (EG(error_reporting) & E_DEPRECATED)) {
174-
return SUCCESS;
175-
}
176-
if (new_value && ZSTR_LEN(new_value) > 0 && strncmp("This setting", ZSTR_VAL(new_value), 11) != 0) {
177-
xdebug_log_ex(
178-
XLOG_CHAN_CONFIG, XLOG_CRIT, "REMOVED",
179-
"The setting '%s' has been removed, see the upgrading guide at %supgrade_guide#changed-%s",
180-
ZSTR_VAL(entry->name), xdebug_lib_docs_base(), ZSTR_VAL(entry->name)
181-
);
182-
}
183-
return FAILURE;
184-
}
185-
186-
static PHP_INI_MH(OnUpdateChangedSetting)
187-
{
188-
if (! (EG(error_reporting) & E_DEPRECATED)) {
189-
return SUCCESS;
190-
}
191-
if (new_value && ZSTR_LEN(new_value) > 0 && strncmp("This setting", ZSTR_VAL(new_value), 11) != 0) {
192-
xdebug_log_ex(
193-
XLOG_CHAN_CONFIG, XLOG_CRIT, "CHANGED",
194-
"The setting '%s' has been renamed, see the upgrading guide at %supgrade_guide#changed-%s",
195-
ZSTR_VAL(entry->name), xdebug_lib_docs_base(), ZSTR_VAL(entry->name)
196-
);
197-
}
198-
return FAILURE;
199-
}
200-
201171
#if HAVE_XDEBUG_CONTROL_SOCKET_SUPPORT
202172
static PHP_INI_MH(OnUpdateCtrlSocket)
203173
{
@@ -251,9 +221,6 @@ ZEND_INI_DISP(display_control_socket)
251221
}
252222
#endif
253223

254-
#define XDEBUG_REMOVED_INI_ENTRY(n) PHP_INI_ENTRY_EX(("" # n), "This setting has been removed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#removed-" # n, PHP_INI_ALL, OnUpdateRemovedSetting, display_removed_setting)
255-
#define XDEBUG_CHANGED_INI_ENTRY(n) PHP_INI_ENTRY_EX(("" # n), "This setting has been changed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-" # n, PHP_INI_ALL, OnUpdateChangedSetting, display_changed_setting)
256-
257224
static const char *xdebug_start_with_request_types[5] = { "", "default", "yes", "no", "trigger" };
258225

259226
ZEND_INI_DISP(display_start_with_request)
@@ -379,33 +346,6 @@ PHP_INI_BEGIN()
379346
STD_PHP_INI_BOOLEAN("xdebug.collect_assignments", "0", PHP_INI_ALL, OnUpdateBool, settings.tracing.collect_assignments, zend_xdebug_globals, xdebug_globals)
380347
STD_PHP_INI_BOOLEAN("xdebug.collect_params", "1", PHP_INI_ALL, OnUpdateBool, settings.tracing.collect_params, zend_xdebug_globals, xdebug_globals)
381348
STD_PHP_INI_BOOLEAN("xdebug.collect_return", "0", PHP_INI_ALL, OnUpdateBool, settings.tracing.collect_return, zend_xdebug_globals, xdebug_globals)
382-
383-
/* Removed/Changed settings */
384-
XDEBUG_CHANGED_INI_ENTRY(xdebug.auto_trace)
385-
XDEBUG_REMOVED_INI_ENTRY(xdebug.collect_includes)
386-
XDEBUG_REMOVED_INI_ENTRY(xdebug.collect_vars)
387-
XDEBUG_CHANGED_INI_ENTRY(xdebug.coverage_enable)
388-
XDEBUG_CHANGED_INI_ENTRY(xdebug.default_enable)
389-
XDEBUG_CHANGED_INI_ENTRY(xdebug.gc_stats_enable)
390-
XDEBUG_CHANGED_INI_ENTRY(xdebug.gc_stats_output_dir)
391-
XDEBUG_REMOVED_INI_ENTRY(xdebug.overload_var_dump)
392-
XDEBUG_CHANGED_INI_ENTRY(xdebug.profiler_enable)
393-
XDEBUG_CHANGED_INI_ENTRY(xdebug.profiler_enable_trigger)
394-
XDEBUG_CHANGED_INI_ENTRY(xdebug.profiler_enable_trigger_value)
395-
XDEBUG_CHANGED_INI_ENTRY(xdebug.profiler_output_dir)
396-
XDEBUG_CHANGED_INI_ENTRY(xdebug.remote_autostart)
397-
XDEBUG_CHANGED_INI_ENTRY(xdebug.remote_connect_back)
398-
XDEBUG_CHANGED_INI_ENTRY(xdebug.remote_enable)
399-
XDEBUG_CHANGED_INI_ENTRY(xdebug.remote_host)
400-
XDEBUG_CHANGED_INI_ENTRY(xdebug.remote_log)
401-
XDEBUG_CHANGED_INI_ENTRY(xdebug.remote_log_level)
402-
XDEBUG_CHANGED_INI_ENTRY(xdebug.remote_mode)
403-
XDEBUG_CHANGED_INI_ENTRY(xdebug.remote_port)
404-
XDEBUG_CHANGED_INI_ENTRY(xdebug.remote_timeout)
405-
XDEBUG_REMOVED_INI_ENTRY(xdebug.show_mem_delta)
406-
XDEBUG_CHANGED_INI_ENTRY(xdebug.trace_output_dir)
407-
XDEBUG_CHANGED_INI_ENTRY(xdebug.trace_enable_trigger)
408-
XDEBUG_CHANGED_INI_ENTRY(xdebug.trace_enable_trigger_value)
409349
PHP_INI_END()
410350

411351
static void xdebug_init_base_globals(xdebug_base_globals_t *xg)

0 commit comments

Comments
 (0)