User tests: Successful: Unsuccessful:
Pull Request for Issue # .
PHP 5.3 adds support for the __DIR__
magic constant, and its result is identical to dirname(__FILE__)
. The former is more clearer and does not has a function call, giving a tiny performance advantage as well.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_joomlaupdate Front End Plugins |
PHP 5.3 adds support for the
__DIR__
magic constant, and its result is identical todirname(__FILE__)
.Can we be sure that this is true for symbolic links, too?
Hi @richard67 - yes. __DIR__
will have the same result as if we were to dirname(__FILE__)
.
Both __FILE__
and __DIR__
resolve symlink, and always use realpaths; not the symlink paths.
Please revert the changes in the restore.php as that is threated as external code. The change in the action logs would than be fine but why do we use that constant there directly anyway?
Did't we use a different constant in other places?
Labels |
Added:
?
|
Category | Administration com_joomlaupdate Front End Plugins | ⇒ | Front End Plugins |
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-11-18 21:00:27 |
Closed_By | ⇒ | HLeithner | |
Labels |
Added:
?
|
Thanks
Can we be sure that this is true for symbolic links, too?