Project

General

Profile

Actions

Task #50494

closed

Check leightweight cases before class_exists if possible

Added by Stefan Neufeind over 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-07-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.

Actions

Also available in: Atom PDF