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 #1

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

Actions #2

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

Actions #3

Updated by Stefan Neufeind over 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF