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-09-07 15:10:02 |
Closed_By | ⇒ | berserkerx |
Status | Closed | ⇒ | Pending |
Status | Pending | ⇒ | Closed |
Closed_Date | 2017-09-07 15:10:02 | ⇒ | 2017-11-05 09:36:13 |
Closed_By | berserkerx | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/17145
What's the reason of failure?
Branch indexing
Connecting to https://api.github.com using joomla-release/******
Loading trusted files from base branch staging at 48f58a6 rather than 81e8f47
Obtained Jenkinsfile from 48f58a6
[Pipeline] node
Still waiting to schedule task
Warte auf den nächsten freien Build-Prozessor
[Pipeline] // node
[Pipeline] End of Pipeline
GitHub has been notified of this commit’s build result
ERROR: Queue task was cancelled
Finished: FAILURE
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17145.