User tests: Successful: Unsuccessful:
If class name starts with the same token, as namespace prefix or contains namespace prefix, the class was not loaded correctly.
Pull Request for Issue #17098 .
Added check for '/' after namespace prefix, replaced 'str_replace' with 'substr' to ensure, that prefix is only removed from the start of class path.
Create libraries/app/vendor/B/src/B.php class with anyMethod method.
JLoader::registerNamespace('B', JPATH_SITE . '/libraries/app/vendor/B/src', $reset = true, $prepend = false, $type = 'psr4');
\B\B::anyMethod();
Autoloading \B\B class and calling anyMethod.
Class not found.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-07-16 12:12:18 |
Closed_By | ⇒ | berserkerx | |
Labels |
Added:
?
|
Status | Closed | ⇒ | Pending |
Status | Pending | ⇒ | Closed |
Closed_Date | 2017-07-16 12:12:18 | ⇒ | 2017-11-05 09:37:48 |
Closed_By | berserkerx | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/17144
Pull requests to the master branch of this repo are not accepted. Please close this pull request and submit a new one against the staging branch.
This is an automated message from the J!Tracker Application.