Mr. Goodie2Shoes
Well-known member
I know PHP 7 is still in beta and this might be an issue with PHP's interpreter rather than XenForo's template compiler but still wanted to post this.
Yesterday, I tried out PHP 7 and when I did a master rebuild I saw that all the links that have something like:
outputs something like:
I know that the array pushed inside '_params' gets extracted by XenForo_Link to append them in the query string rather than the one above.
So when I looked into the compiled template there was something like:
I did the master rebuild twice and the issue persisted.
So I moved back to PHP 5.6 then did another master rebuild and the issue was resolved:
Yesterday, I tried out PHP 7 and when I did a master rebuild I saw that all the links that have something like:
Code:
{xen:link something, '', '_params={$linkParams}'}
Code:
something?_params=Array
I know that the array pushed inside '_params' gets extracted by XenForo_Link to append them in the query string rather than the one above.
So when I looked into the compiled template there was something like:
Code:
XenForo_Template_Helper_Core::link(htmlspecialchars($linkType, ENT_QUOTES, 'UTF-8'), $linkData, array(
'_params' => '' . $linkParams
))
I did the master rebuild twice and the issue persisted.
So I moved back to PHP 5.6 then did another master rebuild and the issue was resolved:
Code:
XenForo_Template_Helper_Core::link(htmlspecialchars($linkType, ENT_QUOTES, 'UTF-8'), $linkData, array(
'_params' => $linkParams
))