Bug #74533
closedNo errors from GeneralUtility::callUserFunction without explicit request
100%
Description
Currently trying to call a method of a non existing (not autoloadable) class via `GeneralUtility::callUserFunction()` basically swallows the error (calls debug()
in fact) unless the $errorMode
parameter was explicitly set to 2
.
This happens basically nowhere in the core thus errors like these are hard to catch/find without additional effort.
The $errorMode
parameter should be dropped and the exception could be thrown based on @$TYPO3_CONF_VARS['SYS']['displayErrors'] instead. Always throwing an exception for these kind of errors would be preferable though.
Updated by Benni Mack about 8 years ago
Hey Mathias,
how about we remove the option completely in v9.0 (!) and mark it as breaking, basically always throwing a RuntimeException?
Also, we could remove the "&" functionality for persistence logic. I will create a separate patch / issue for that.
Updated by Benni Mack about 8 years ago
- Target version changed from 8 LTS to 9 LTS
Updated by Gerrit Code Review almost 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50996
Updated by Gerrit Code Review almost 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50996
Updated by Gerrit Code Review almost 8 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50996
Updated by Gerrit Code Review almost 8 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50996
Updated by Gerrit Code Review almost 8 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50996
Updated by Gerrit Code Review over 7 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50996
Updated by Gerrit Code Review over 7 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50996
Updated by Gerrit Code Review over 7 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50996
Updated by Andreas Fernandez over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1de38e97d99dfd383195e5da7da3de75b5bf6e49.