J3 Issue ?
avatar stAn47
stAn47
13 Aug 2019

i just got to check php7.4 and all of my code base and there seems to be some deprecated systax used by core joomla which causes error/notice messages to be shown (when error reporting enabled) which breaks session initalization which further breaks joomla execution.

these are notices before session is initilized

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/vendor/joomla/string/src/phputf8/ord.php on line 23

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/vendor/joomla/string/src/phputf8/ord.php on line 28

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/vendor/joomla/string/src/phputf8/ord.php on line 34

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/vendor/joomla/string/src/phputf8/ord.php on line 38

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/vendor/joomla/string/src/phputf8/ord.php on line 45

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/vendor/joomla/string/src/phputf8/ord.php on line 49

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/vendor/joomla/string/src/phputf8/ord.php on line 58

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/vendor/joomla/string/src/phputf8/ord.php on line 62

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/vendor/joomla/string/src/phputf8/ord.php on line 71

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/vendor/joomla/string/src/phputf8/ord.php on line 81

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/vendor/joomla/string/src/phputf8/utils/validation.php on line 40

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/vendor/typo3/phar-stream-wrapper/src/PharStreamWrapper.php on line 479

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/joomla/database/driver.php on line 1956

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/joomla/database/driver.php on line 1956

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/joomla/database/driver.php on line 1956

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/joomla/database/driver.php on line 1956

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/joomla/database/driver.php on line 1956

Deprecated: Array and string offset access syntax with curly braces is deprecated in  /libraries/joomla/database/driver.php on line 2032

per my understanding of the problem, strings cannot be accessed with $str{1} but require to be accessed via $str[1]

i cannot get further since enabling error reporting breaks joomla and thus i cannot locate more of these now.

best regards, stan

avatar stAn47 stAn47 - open - 13 Aug 2019
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Aug 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 13 Aug 2019

i guess J4?

avatar stAn47
stAn47 - comment - 13 Aug 2019

no, this on the latest j3.9.11
or is php7.4 going to be added only for j4 and later ?

well, i just checked :

https://github.com/joomla/joomla-cms/blob/staging/libraries/vendor/joomla/string/src/phputf8/ord.php
vs
https://github.com/joomla-framework/string/blob/master/src/phputf8/ord.php

and it seems that the issue is fixed on "joomla framework" but not within the latest j3 version.

is there any reason for this ?

best regards, stan

avatar franz-wohlkoenig franz-wohlkoenig - change - 13 Aug 2019
Labels Added: J3 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 13 Aug 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 13 Aug 2019

thanks for Info. Please provide always System Informations.

avatar mbabker
mbabker - comment - 13 Aug 2019

libraries/joomla/database/driver.php needs a patch similar to joomla-framework/database@486f073 (which I needed because the Framework apps that power parts of joomla.org were failing their test suites on 7.4).

A new release of the joomla/string package is needed then a composer update joomla/string is needed for the CMS.

The PHAR wrapper is not PHP 7.4 ready yet, TYPO3/phar-stream-wrapper#49

avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Aug 2019
Status New Discussion
avatar alikon
alikon - comment - 14 Aug 2019

please test #25782 for 1st point
still left to do joomla/string ...

avatar wilsonge
wilsonge - comment - 14 Aug 2019

String package released as version 1.4.3

avatar richard67
richard67 - comment - 14 Aug 2019

I will make PR for composer update of string package tonight Central European summer time. If someone else wants to do this earlier then let us know here so we don‘t do double work.

avatar SharkyKZ
SharkyKZ - comment - 14 Aug 2019

@richard67 There's already PR open #25601. I'll update it.

avatar richard67
richard67 - comment - 14 Aug 2019

@SharkyKZ Thanks for info and PR.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Aug 2019

@SharkyKZ can this Issue be closed?

avatar SharkyKZ
SharkyKZ - comment - 14 Aug 2019

@franz-wohlkoenig I'd keep this open until Phar Stream Wrapper update is released.

avatar SharkyKZ
SharkyKZ - comment - 30 Oct 2019

Test PR #26862 please.

avatar joomla-cms-bot joomla-cms-bot - change - 30 Oct 2019
Priority Medium Very low
Closed_By SharkyKZ joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 30 Oct 2019
avatar SharkyKZ SharkyKZ - change - 30 Oct 2019
Priority Very low Medium
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-10-30 07:01:38
Closed_By SharkyKZ
avatar joomla-cms-bot
joomla-cms-bot - comment - 30 Oct 2019

Set to "closed" on behalf of @SharkyKZ by The JTracker Application at issues.joomla.org/joomla-cms/25834

Add a Comment

Login with GitHub to post a comment