Task #50494
closedCheck leightweight cases before class_exists if possible
100%
Description
While reviewing a fix for #50217 it appeared that calling class_exists triggers autoloading. If other checks like "in_array" can be done first that is more leightweight than calling class_exists and potentially causing multiple autoloaders (without success) to search for files.
In FAL for example a drivername is first checked for being a class and if not being a class it is tried to be expanded (with namespacing etc.) using the driver-registry. As such the classname "Local" (for LocalDriver) is first tried, which of cause does not exist in this generic form.
Updated by Gerrit Code Review over 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22627
Updated by Gerrit Code Review over 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22627
Updated by Stefan Neufeind over 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 2bf4bc32230bf23a77420ba1b639206c43142784.