User tests: Successful: Unsuccessful:
Bootstrapping Joomla using the cms.php file is deprecated
However bootstrap.php and cms.php contain the same content, the only difference is that cms.php has the code to raise a deprecated notice.
HOWEVER the two files are NOT the same, and therefore calling cms.php is NOT THE SAME as calling bootstrap.php as changes are not being made to keep both files in sync (Eg: the following code is missing from cms.php)
// Register the PasswordHash library.
JLoader::register('PasswordHash', JPATH_PLATFORM . '/phpass/PasswordHash.php');
Try to bootstrap Joomla using cms.php
Try to bootstrap Joomla using bootstrap.php
bootstrap Joomla using cms.php would not register the PasswordHash library.
bootstrap Joomla using cms.php would register the PasswordHash library.
AND future changes will be made in bootstrap.php and not forgotten about and synced to cms.php
None, the deprecation (I assume) is already documented...
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Closing as no interest and now conflicts.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-02-25 14:22:57 |
Closed_By | ⇒ | PhilETaylor |
Not sure exactly how to bootstrap using different methods - my inexperience. However, I applied the patch and saw that cms.php calls the deprecation notice and then requires bootstrap.php - looks good.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30789.