?
avatar Crixu44
Crixu44
28 Jul 2015

Steps to reproduce the issue

Install Joomla! on PHp 5.5.
Then switch to PHP 7.
Error appears

Expected result

Joomla! works

Actual result

Fatal error: Cannot use Joomla\String\String as String because 'String' is a special class name in [...]/libraries/vendor/joomla/registry/src/Format/Json.php on line 12

System information (as much as possible)

PHP 7 Beta 2
Joomla! 3.4.3

Additional comments

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar Crixu44 Crixu44 - open - 28 Jul 2015
avatar Bakual
Bakual - comment - 28 Jul 2015

It's a know issue. Joomla 3.4 isn't compatible with PHP7 yet.
Joomla 3.5 should be compatible. To my knowlege all issues are fixed there.

Can you confirm that @mbabker and @wilsonge ?

avatar wilsonge
wilsonge - comment - 28 Jul 2015

Yes we fixed this in the Joomla 3.5 branch by changing the class name to StringHelper. Although we've left the old wrapper String class in place in case people are using it for b/c, we merged it to the 3.5 branch because JString now inherits the StringHelper class rather than String (as they are all static methods this shouldn't be an issue and on top of that the only difference would occur if people initialised and typehinted the class against a class only introduced in 3.4.0)

TLDR: If you test against the 3.5-branch (or 3.5 nightly build at http://developer.joomla.org/cms-packages/) this should be fixed. Closing the issue :)

avatar wilsonge wilsonge - change - 28 Jul 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-07-28 11:03:28
Closed_By wilsonge
avatar wilsonge wilsonge - close - 28 Jul 2015

Add a Comment

Login with GitHub to post a comment