View Issue Details

IDProjectCategoryView StatusLast Update
0004276OXID eShop (all versions)4.05. Performancepublic2012-12-10 13:29
Reportermarco_steinhaeuser Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version4.6.2 revision 46646 
Summary0004276: replace double quotes by apostrophes in lang files
DescriptionPresently, at least since version 4.5.1, we have this structure in language files:
'LANG_KEY' => "Value",

Please replace double quotes for the values and replace them by apostrophes like this:
'LANG_KEY' => "Value",

Using double quotes means that all keys will be handled by the PHP parser again as there could be found another variable. Doing like this, could increase the performance at least a bit. Anyway, there seems to be no variable in standard translation of the shop.
TagsPerformance
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

rimvydas_paskevicius

2012-08-30 16:42

reporter   ~0007413

Double quotes vs. single quotes - you can hear this discussion already for years... In earlier php version (4.x) it had some impact in on speed, but now days in latests php versions it does not matter which kind of quotes you are using.

Some links to read about that:

http://www.linuxask.com/questions/should-i-always-use-single-quotes-for-php-strings

And more detailed explanation:

http://nikic.github.com/2012/01/09/Disproving-the-Single-Quotes-Performance-Myth.html