diff options
-rw-r--r-- | 0654240f24f6f619074c205462dbefe9b175c122.patch | 46 | ||||
-rw-r--r-- | PHPINFO | 77 | ||||
-rw-r--r-- | REFLECTION | 191 | ||||
-rw-r--r-- | php-pecl-xdebug.spec | 11 |
4 files changed, 129 insertions, 196 deletions
diff --git a/0654240f24f6f619074c205462dbefe9b175c122.patch b/0654240f24f6f619074c205462dbefe9b175c122.patch deleted file mode 100644 index 1eb280e..0000000 --- a/0654240f24f6f619074c205462dbefe9b175c122.patch +++ /dev/null @@ -1,46 +0,0 @@ -From 0654240f24f6f619074c205462dbefe9b175c122 Mon Sep 17 00:00:00 2001 -From: Derick Rethans <github@derickrethans.nl> -Date: Sat, 30 Nov 2019 17:23:53 +0000 -Subject: [PATCH] Fix key generation on 32 bit platforms - ---- - xdebug_code_coverage.c | 18 ++++++++++++++---- - 1 file changed, 14 insertions(+), 4 deletions(-) - -diff --git a/xdebug_code_coverage.c b/xdebug_code_coverage.c -index d7a2027fe..bd2a5f343 100644 ---- a/xdebug_code_coverage.c -+++ b/xdebug_code_coverage.c -@@ -1047,18 +1047,28 @@ static int prefill_from_function_table(zend_op_array *opa) - return ZEND_HASH_APPLY_KEEP; - } - -+/* Set correct int format to use */ -+#if SIZEOF_ZEND_LONG == 4 -+# define XDEBUG_PTR_KEY_LEN 8 -+# define XDEBUG_PTR_KEY_FMT "%08X" -+#else -+# define XDEBUG_PTR_KEY_LEN 16 -+# define XDEBUG_PTR_KEY_FMT "%016lX" -+#endif -+ -+ - static int mark_class_as_visited(zend_class_entry *ce) - { - int already_visited = 0; - void *dummy; /* we only care about key existence, not value */ -- char key[17]; -+ char key[XDEBUG_PTR_KEY_LEN + 1]; - -- snprintf(key, 17, "%016lX", (uintptr_t) ce); -+ snprintf(key, XDEBUG_PTR_KEY_LEN + 1, XDEBUG_PTR_KEY_FMT, (uintptr_t) ce); - -- if (xdebug_hash_find(XG(visited_classes), key, 16, (void*) &dummy)) { -+ if (xdebug_hash_find(XG(visited_classes), key, XDEBUG_PTR_KEY_LEN, (void*) &dummy)) { - already_visited = 1; - } else { -- xdebug_hash_add(XG(visited_classes), key, 16, NULL); -+ xdebug_hash_add(XG(visited_classes), key, XDEBUG_PTR_KEY_LEN, NULL); - } - - return already_visited; @@ -2,23 +2,32 @@ xdebug xdebug support => enabled -Version => 2.8.1 -IDE Key => remi +Version => 2.9.0 Support Xdebug on Patreon, GitHub, or as a business: https://xdebug.org/support -Supported protocols -DBGp - Common DeBuGger Protocol +Debugger => enabled +IDE Key => remi Directive => Local Value => Master Value -xdebug.auto_trace => Off => Off -xdebug.cli_color => 0 => 0 -xdebug.collect_assignments => Off => Off +xdebug.coverage_enable => On => On xdebug.collect_includes => On => On xdebug.collect_params => 0 => 0 xdebug.collect_return => Off => Off xdebug.collect_vars => Off => Off -xdebug.coverage_enable => On => On +xdebug.collect_assignments => Off => Off xdebug.default_enable => On => On +xdebug.file_link_format => no value => no value +xdebug.filename_format => no value => no value +xdebug.force_display_errors => Off => Off +xdebug.force_error_reporting => 0 => 0 +xdebug.halt_level => 0 => 0 +xdebug.max_nesting_level => 256 => 256 +xdebug.max_stack_frames => -1 => -1 +xdebug.overload_var_dump => 2 => 2 +xdebug.show_error_trace => Off => Off +xdebug.show_exception_trace => Off => Off +xdebug.show_local_vars => Off => Off +xdebug.show_mem_delta => Off => Off xdebug.dump.COOKIE => no value => no value xdebug.dump.ENV => no value => no value xdebug.dump.FILES => no value => no value @@ -30,48 +39,36 @@ xdebug.dump.SESSION => no value => no value xdebug.dump_globals => On => On xdebug.dump_once => On => On xdebug.dump_undefined => Off => Off -xdebug.file_link_format => no value => no value -xdebug.filename_format => no value => no value -xdebug.force_display_errors => Off => Off -xdebug.force_error_reporting => 0 => 0 -xdebug.gc_stats_enable => Off => Off -xdebug.gc_stats_output_dir => /tmp => /tmp -xdebug.gc_stats_output_name => gcstats.%p => gcstats.%p -xdebug.halt_level => 0 => 0 -xdebug.idekey => no value => no value -xdebug.max_nesting_level => 256 => 256 -xdebug.max_stack_frames => -1 => -1 -xdebug.overload_var_dump => 2 => 2 -xdebug.profiler_aggregate => Off => Off -xdebug.profiler_append => Off => Off xdebug.profiler_enable => Off => Off -xdebug.profiler_enable_trigger => Off => Off -xdebug.profiler_enable_trigger_value => no value => no value xdebug.profiler_output_dir => /tmp => /tmp xdebug.profiler_output_name => cachegrind.out.%p => cachegrind.out.%p -xdebug.remote_addr_header => no value => no value -xdebug.remote_autostart => Off => Off -xdebug.remote_connect_back => Off => Off -xdebug.remote_cookie_expire_time => 3600 => 3600 +xdebug.profiler_enable_trigger => Off => Off +xdebug.profiler_enable_trigger_value => no value => no value +xdebug.profiler_append => Off => Off xdebug.remote_enable => Off => Off -xdebug.remote_handler => dbgp => dbgp xdebug.remote_host => localhost => localhost -xdebug.remote_log => no value => no value -xdebug.remote_log_level => 7 => 7 xdebug.remote_mode => req => req xdebug.remote_port => 9000 => 9000 +xdebug.remote_autostart => Off => Off +xdebug.remote_connect_back => Off => Off +xdebug.remote_log => no value => no value +xdebug.remote_log_level => 7 => 7 +xdebug.idekey => no value => no value +xdebug.remote_cookie_expire_time => 3600 => 3600 +xdebug.remote_addr_header => no value => no value xdebug.remote_timeout => 200 => 200 +xdebug.var_display_max_children => 128 => 128 +xdebug.var_display_max_data => 512 => 512 +xdebug.var_display_max_depth => 3 => 3 +xdebug.cli_color => 0 => 0 xdebug.scream => Off => Off -xdebug.show_error_trace => Off => Off -xdebug.show_exception_trace => Off => Off -xdebug.show_local_vars => Off => Off -xdebug.show_mem_delta => Off => Off +xdebug.gc_stats_enable => Off => Off +xdebug.gc_stats_output_dir => /tmp => /tmp +xdebug.gc_stats_output_name => gcstats.%p => gcstats.%p +xdebug.auto_trace => Off => Off xdebug.trace_enable_trigger => Off => Off xdebug.trace_enable_trigger_value => no value => no value -xdebug.trace_format => 0 => 0 -xdebug.trace_options => 0 => 0 xdebug.trace_output_dir => /tmp => /tmp xdebug.trace_output_name => trace.%c => trace.%c -xdebug.var_display_max_children => 128 => 128 -xdebug.var_display_max_data => 512 => 512 -xdebug.var_display_max_depth => 3 => 3 +xdebug.trace_format => 0 => 0 +xdebug.trace_options => 0 => 0 @@ -1,14 +1,8 @@ -Extension [ <persistent> extension #189 xdebug version 2.8.1 ] { +Extension [ <persistent> extension #191 xdebug version 2.9.0 ] { - INI { - Entry [ xdebug.auto_trace <ALL> ] - Current = '0' - } - Entry [ xdebug.cli_color <ALL> ] - Current = '0' - } - Entry [ xdebug.collect_assignments <ALL> ] - Current = '0' + Entry [ xdebug.coverage_enable <SYSTEM> ] + Current = '1' } Entry [ xdebug.collect_includes <ALL> ] Current = '1' @@ -22,12 +16,48 @@ Extension [ <persistent> extension #189 xdebug version 2.8.1 ] { Entry [ xdebug.collect_vars <ALL> ] Current = '0' } - Entry [ xdebug.coverage_enable <SYSTEM> ] - Current = '1' + Entry [ xdebug.collect_assignments <ALL> ] + Current = '0' } Entry [ xdebug.default_enable <ALL> ] Current = '1' } + Entry [ xdebug.file_link_format <ALL> ] + Current = '' + } + Entry [ xdebug.filename_format <ALL> ] + Current = '' + } + Entry [ xdebug.force_display_errors <SYSTEM> ] + Current = '0' + } + Entry [ xdebug.force_error_reporting <SYSTEM> ] + Current = '0' + } + Entry [ xdebug.halt_level <ALL> ] + Current = '0' + } + Entry [ xdebug.max_nesting_level <ALL> ] + Current = '256' + } + Entry [ xdebug.max_stack_frames <ALL> ] + Current = '-1' + } + Entry [ xdebug.overload_var_dump <ALL> ] + Current = '2' + } + Entry [ xdebug.show_error_trace <ALL> ] + Current = '0' + } + Entry [ xdebug.show_exception_trace <ALL> ] + Current = '0' + } + Entry [ xdebug.show_local_vars <ALL> ] + Current = '0' + } + Entry [ xdebug.show_mem_delta <ALL> ] + Current = '0' + } Entry [ xdebug.dump.COOKIE <ALL> ] Current = '' } @@ -61,65 +91,35 @@ Extension [ <persistent> extension #189 xdebug version 2.8.1 ] { Entry [ xdebug.dump_undefined <ALL> ] Current = '0' } - Entry [ xdebug.file_link_format <ALL> ] - Current = '' - } - Entry [ xdebug.filename_format <ALL> ] - Current = '' - } - Entry [ xdebug.force_display_errors <SYSTEM> ] - Current = '0' - } - Entry [ xdebug.force_error_reporting <SYSTEM> ] - Current = '0' - } - Entry [ xdebug.gc_stats_enable <PERDIR,SYSTEM> ] + Entry [ xdebug.profiler_enable <PERDIR,SYSTEM> ] Current = '0' } - Entry [ xdebug.gc_stats_output_dir <PERDIR,SYSTEM> ] + Entry [ xdebug.profiler_output_dir <PERDIR,SYSTEM> ] Current = '/tmp' } - Entry [ xdebug.gc_stats_output_name <PERDIR,SYSTEM> ] - Current = 'gcstats.%p' + Entry [ xdebug.profiler_output_name <PERDIR,SYSTEM> ] + Current = 'cachegrind.out.%p' } - Entry [ xdebug.halt_level <ALL> ] + Entry [ xdebug.profiler_enable_trigger <PERDIR,SYSTEM> ] Current = '0' } - Entry [ xdebug.idekey <ALL> ] + Entry [ xdebug.profiler_enable_trigger_value <PERDIR,SYSTEM> ] Current = '' } - Entry [ xdebug.max_nesting_level <ALL> ] - Current = '256' - } - Entry [ xdebug.max_stack_frames <ALL> ] - Current = '-1' - } - Entry [ xdebug.overload_var_dump <ALL> ] - Current = '2' - } - Entry [ xdebug.profiler_aggregate <PERDIR,SYSTEM> ] - Current = '0' - } Entry [ xdebug.profiler_append <PERDIR,SYSTEM> ] Current = '0' } - Entry [ xdebug.profiler_enable <PERDIR,SYSTEM> ] - Current = '0' - } - Entry [ xdebug.profiler_enable_trigger <PERDIR,SYSTEM> ] + Entry [ xdebug.remote_enable <PERDIR,SYSTEM> ] Current = '0' } - Entry [ xdebug.profiler_enable_trigger_value <PERDIR,SYSTEM> ] - Current = '' - } - Entry [ xdebug.profiler_output_dir <PERDIR,SYSTEM> ] - Current = '/tmp' + Entry [ xdebug.remote_host <ALL> ] + Current = 'localhost' } - Entry [ xdebug.profiler_output_name <PERDIR,SYSTEM> ] - Current = 'cachegrind.out.%p' + Entry [ xdebug.remote_mode <ALL> ] + Current = 'req' } - Entry [ xdebug.remote_addr_header <ALL> ] - Current = '' + Entry [ xdebug.remote_port <ALL> ] + Current = '9000' } Entry [ xdebug.remote_autostart <ALL> ] Current = '0' @@ -127,46 +127,49 @@ Extension [ <persistent> extension #189 xdebug version 2.8.1 ] { Entry [ xdebug.remote_connect_back <ALL> ] Current = '0' } - Entry [ xdebug.remote_cookie_expire_time <ALL> ] - Current = '3600' - } - Entry [ xdebug.remote_enable <PERDIR,SYSTEM> ] - Current = '0' - } - Entry [ xdebug.remote_handler <ALL> ] - Current = 'dbgp' - } - Entry [ xdebug.remote_host <ALL> ] - Current = 'localhost' - } Entry [ xdebug.remote_log <ALL> ] Current = '' } Entry [ xdebug.remote_log_level <ALL> ] Current = '7' } - Entry [ xdebug.remote_mode <ALL> ] - Current = 'req' + Entry [ xdebug.idekey <ALL> ] + Current = '' } - Entry [ xdebug.remote_port <ALL> ] - Current = '9000' + Entry [ xdebug.remote_cookie_expire_time <ALL> ] + Current = '3600' + } + Entry [ xdebug.remote_addr_header <ALL> ] + Current = '' } Entry [ xdebug.remote_timeout <ALL> ] Current = '200' } - Entry [ xdebug.scream <ALL> ] - Current = '0' + Entry [ xdebug.var_display_max_children <ALL> ] + Current = '128' } - Entry [ xdebug.show_error_trace <ALL> ] + Entry [ xdebug.var_display_max_data <ALL> ] + Current = '512' + } + Entry [ xdebug.var_display_max_depth <ALL> ] + Current = '3' + } + Entry [ xdebug.cli_color <ALL> ] Current = '0' } - Entry [ xdebug.show_exception_trace <ALL> ] + Entry [ xdebug.scream <ALL> ] Current = '0' } - Entry [ xdebug.show_local_vars <ALL> ] + Entry [ xdebug.gc_stats_enable <PERDIR,SYSTEM> ] Current = '0' } - Entry [ xdebug.show_mem_delta <ALL> ] + Entry [ xdebug.gc_stats_output_dir <PERDIR,SYSTEM> ] + Current = '/tmp' + } + Entry [ xdebug.gc_stats_output_name <PERDIR,SYSTEM> ] + Current = 'gcstats.%p' + } + Entry [ xdebug.auto_trace <ALL> ] Current = '0' } Entry [ xdebug.trace_enable_trigger <PERDIR,SYSTEM> ] @@ -175,38 +178,29 @@ Extension [ <persistent> extension #189 xdebug version 2.8.1 ] { Entry [ xdebug.trace_enable_trigger_value <PERDIR,SYSTEM> ] Current = '' } - Entry [ xdebug.trace_format <ALL> ] - Current = '0' - } - Entry [ xdebug.trace_options <ALL> ] - Current = '0' - } Entry [ xdebug.trace_output_dir <ALL> ] Current = '/tmp' } Entry [ xdebug.trace_output_name <ALL> ] Current = 'trace.%c' } - Entry [ xdebug.var_display_max_children <ALL> ] - Current = '128' - } - Entry [ xdebug.var_display_max_data <ALL> ] - Current = '512' + Entry [ xdebug.trace_format <ALL> ] + Current = '0' } - Entry [ xdebug.var_display_max_depth <ALL> ] - Current = '3' + Entry [ xdebug.trace_options <ALL> ] + Current = '0' } } - Constants [15] { + Constant [ int XDEBUG_STACK_NO_DESC ] { 1 } + Constant [ int XDEBUG_CC_UNUSED ] { 1 } + Constant [ int XDEBUG_CC_DEAD_CODE ] { 2 } + Constant [ int XDEBUG_CC_BRANCH_CHECK ] { 4 } Constant [ int XDEBUG_TRACE_APPEND ] { 1 } Constant [ int XDEBUG_TRACE_COMPUTERIZED ] { 2 } Constant [ int XDEBUG_TRACE_HTML ] { 4 } Constant [ int XDEBUG_TRACE_NAKED_FILENAME ] { 8 } - Constant [ int XDEBUG_CC_UNUSED ] { 1 } - Constant [ int XDEBUG_CC_DEAD_CODE ] { 2 } - Constant [ int XDEBUG_CC_BRANCH_CHECK ] { 4 } - Constant [ int XDEBUG_STACK_NO_DESC ] { 1 } Constant [ int XDEBUG_FILTER_TRACING ] { 256 } Constant [ int XDEBUG_FILTER_CODE_COVERAGE ] { 512 } Constant [ int XDEBUG_FILTER_NONE ] { 0 } @@ -333,17 +327,6 @@ Extension [ <persistent> extension #189 xdebug version 2.8.1 ] { - Parameters [0] { } } - Function [ <internal:xdebug> function xdebug_dump_aggr_profiling_data ] { - - - Parameters [1] { - Parameter #0 [ <optional> $prefix ] - } - } - Function [ <internal:xdebug> function xdebug_clear_aggr_profiling_data ] { - - - Parameters [0] { - } - } Function [ <internal:xdebug> function xdebug_start_gcstats ] { - Parameters [1] { diff --git a/php-pecl-xdebug.spec b/php-pecl-xdebug.spec index c922400..454233a 100644 --- a/php-pecl-xdebug.spec +++ b/php-pecl-xdebug.spec @@ -19,11 +19,11 @@ %global pecl_name xdebug %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} -%global gh_commit cb3a3a4fdf841c53f36548237e81b81c8a57cdf1 +%global gh_commit c60dd1ad245cd8fc4ea8520416cee21f3052ed96 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20190614 %global with_tests 0%{!?_without_tests:1} -%global upstream_version 2.8.1 +%global upstream_version 2.9.0 #global upstream_prever beta2 #global upstream_lower beta2 @@ -45,8 +45,6 @@ License: BSD URL: https://xdebug.org/ Source0: https://github.com/%{pecl_name}/%{pecl_name}/archive/%{gh_commit}/%{pecl_name}-%{upstream_version}%{?upstream_prever}-%{gh_short}.tar.gz -Patch0: https://github.com/xdebug/xdebug/commit/0654240f24f6f619074c205462dbefe9b175c122.patch - BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel > 7 BuildRequires: %{?scl_prefix}php-pear @@ -145,8 +143,6 @@ mv NTS/package.xml . %{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml} cd NTS -%patch0 -p1 - # Check extension version ver=$(sed -n '/XDEBUG_VERSION/{s/.* "//;s/".*$//;p}' php_xdebug.h) if test "$ver" != "%{upstream_version}%{?upstream_prever}%{?gh_date:-dev}"; then @@ -305,6 +301,9 @@ fi %changelog +* Mon Dec 9 2019 Remi Collet <remi@remirepo.net> - 2.9.0-1 +- update to 2.9.0 + * Mon Dec 2 2019 Remi Collet <remi@remirepo.net> - 2.8.1-1 - update to 2.8.1 |