Task #31300

Improve t3lib_utility_debug::debugTrail to better handle includes

Added by Markus Klein over 1 year ago. Updated over 1 year ago.

Status:Resolved Start date:2011-10-26
Priority:Should have Due date:
Assignee:Markus Klein % Done:

100%

Category:-
Target version:4.5.12
TYPO3 Version:4.5 Complexity:easy
PHP Version:
Votes: 0

Description

When trying to debug deprecation issues like #31290, it is hard to actually follow the stack trace as the output misses important information for include and require statements.

My patch adds this information to the output.

Associated revisions

Revision 4c41ba44
Added by Markus Klein over 1 year ago

[TASK] Improve debugTrail() to better handle includes

The deprecation log lacks specific and necessary information about
include and require calls, which makes it hard to actually follow
a stack trace.

Add special treatment of this sort of functions and display additional
path information.

Change-Id: If816432d3204454954079c636f539243eb3fa55b
Resolves: #31300
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/6343
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
Reviewed-by: Wouter Wolters
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch

Revision fd261f90
Added by Markus Klein over 1 year ago

[TASK] Improve debugTrail() to better handle includes

The deprecation log lacks specific and necessary information about
include and require calls, which makes it hard to actually follow
a stack trace.

Add special treatment of this sort of functions and display additional
path information.

Change-Id: I0510082ad8668b0d552f65969bbec95f37365770
Resolves: #31300
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/7795
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert

Revision a31819bb
Added by Markus Klein over 1 year ago

[TASK] Improve debugTrail() to better handle includes

The deprecation log lacks specific and necessary information about
include and require calls, which makes it hard to actually follow
a stack trace.

Add special treatment of this sort of functions and display additional
path information.

Change-Id: If44397c4e6672932f95d3854105a20993fbdf9d9
Resolves: #31300
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/7794
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert

History

Updated by Mr. Hudson over 1 year ago

  • Status changed from New to Under Review

Patch set 1 of change If816432d3204454954079c636f539243eb3fa55b has been pushed to the review server.
It is available at http://review.typo3.org/6343

Updated by Markus Klein over 1 year ago

Output for example case #31290

Old output:
t3lib_cache_backend_DbBackend->setCacheTable() - since TYPO3 4.6: The backend calculates the table name internally, this method does nothing anymore - require#55 // include#377 // t3lib_cache_Factory->create#2796 // t3lib_div::makeInstance#83 // ReflectionClass->newInstanceArgs#4924 // t3lib_cache_backend_AbstractBackend->__construct# // t3lib_cache_backend_DbBackend->setCacheTable#84 // t3lib_div::logDeprecatedFunction#379 (_src_4-6/t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php#378)

New output:
t3lib_cache_backend_DbBackend->setCacheTable() - since TYPO3 4.6: The backend calculates the table name internally, this method does nothing anymore - require(_src_4-6/typo3/init.php),_src_4-6/typo3/index.php#38 // include(typo3conf/temp_CACHED_pse8ab_ext_tables.php),_src_4-6/typo3/init.php#377 // t3lib_cache_Factory->create#2796 // t3lib_div::makeInstance#83 // ReflectionClass->newInstanceArgs#4924 // t3lib_cache_backend_AbstractBackend->__construct# // t3lib_cache_backend_DbBackend->setCacheTable#84 // t3lib_div::logDeprecatedFunction#379 (_src_4-6/t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php#378)

Updated by Mr. Hudson over 1 year ago

Patch set 2 of change If816432d3204454954079c636f539243eb3fa55b has been pushed to the review server.
It is available at http://review.typo3.org/6343

Updated by Mr. Hudson over 1 year ago

Patch set 3 of change If816432d3204454954079c636f539243eb3fa55b has been pushed to the review server.
It is available at http://review.typo3.org/6343

Updated by Chris topher over 1 year ago

  • Target version changed from 4.6.1 to 4.6.2

Updated by Gerrit Code Review over 1 year ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6343

Updated by Steffen Gebert over 1 year ago

  • Category deleted (Reports)
  • Target version deleted (4.6.2)

Updated by Gerrit Code Review over 1 year ago

Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6343

Updated by Gerrit Code Review over 1 year ago

Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/7794

Updated by Gerrit Code Review over 1 year ago

Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/7795

Updated by Markus Klein over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 90 to 100

Updated by Steffen Gebert over 1 year ago

  • Target version set to 4.5.12
  • TYPO3 Version changed from 4.6 to 4.5

Also available in: Atom PDF