Bug #31834
closedError handler callback causes fatal error for parse time errors
100%
Description
TYPO3's error handler callback t3lib_error_ErrorHandler::handleError() causes a fatal error for PHP parse time errors.
If an error occurs during parse time (like E_DEPRECATED due to deprecated $foo =& stdClass() code), autoloading is not available and such PHP standard class 'Exception' (extended by t3lib_exception) is not resolvable. This results in a fatal and misleading error 'Class "Exception" not found' together with a not useful backtrace. Additionally this behaviour hides the original causing error (deprecated code).
Debugging this is a pain in the ass.
TYPO3's default error types which are registered in custom error handler are covering such deprecation errors. If users have such deprecated code ($foo =& stdClass()) somewhere in their legacy code, they will face the same situation.
E_DEPRECATED has been introduced in PHP 5.3.
The more users with existing TYPO3 installations are upgrading to TYPO3 4.6+ (and such PHP 5.3+), the more likely we will get and see such misleading fatal errors. I recommend to fix this as soon as possible.
Updated by Mr. Hudson about 13 years ago
- Status changed from New to Under Review
Patch set 1 of change I4ab97c1bf2d888022369f2095285cecc5a4c54a4 has been pushed to the review server.
It is available at http://review.typo3.org/6683
Updated by Gerrit Code Review almost 13 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6683
Updated by Gerrit Code Review about 12 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6683
Updated by Marcus Krause about 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 8dcc891db43eb6f5663b5c8e05712b29dc979f48.
Updated by Gerrit Code Review about 12 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/14925
Updated by Gerrit Code Review about 12 years ago
Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/14926
Updated by Gerrit Code Review about 12 years ago
Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/14927
Updated by Gerrit Code Review about 12 years ago
Patch set 2 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/14927
Updated by Marcus Krause about 12 years ago
- Status changed from Under Review to Resolved
Applied in changeset 76e9e0ea932697b8f583e8713bb3aa21f81474d7.