Jump to content


Photo

php 7.4

php7.4

  • Please log in to reply
4 replies to this topic

#1 ylandsman

ylandsman

    Member

  • Members
  • PipPip
  • 22 posts

Posted 18 August 2020 - 09:34 AM

When will php 7.4 be supported?  I see that yii has an update to the framework to cover this.  Would it be sufficient to replace the framework with this update?



#2 alt_f4

alt_f4

    Advanced Member

  • Premium Members
  • PipPipPip
  • 379 posts
  • LocationGermany

Posted 20 August 2020 - 12:05 AM

We´re on 7.4 without any problems.

 

8rpzc8wn.png



#3 ylandsman

ylandsman

    Member

  • Members
  • PipPip
  • 22 posts

Posted 23 August 2020 - 05:00 PM

I am getting several deprecated messages for CJSON.php

 

for example

 

Array and string offset access syntax with curly braces is deprecated in /home/bbdev/public_html/crm/framework/web/helpers/CJSON.php on line 151

 

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/bbdev/public_html/crm/framework/web/helpers/CJSON.php on line 156

 

etc

 

It's a fairly simple change, but I want to make sure I stay in synch with you



#4 alt_f4

alt_f4

    Advanced Member

  • Premium Members
  • PipPipPip
  • 379 posts
  • LocationGermany

Posted 23 August 2020 - 10:15 PM

Sure you´re on X2CRM 8.0?



#5 ylandsman

ylandsman

    Member

  • Members
  • PipPip
  • 22 posts

Posted 24 August 2020 - 08:05 AM

Yes, and the lines inquestion match the 8.0 branch of the repo.  Could it be that you are suppressing warnings in php?

 

Here is an example of one of those lines from the repo:-

 

CJSON.php line 151 $ascii .= '\\'.$var{$c};

 

Notice the curly brackets around $c  That has been deprecated in php 7.4

 

 

In the latest version of yii1 (1.1.2) It has been fixed and reads

 

$ascii .= '\\'.$var[$c];

 

I think just updating the framework to yii1.1.2 will resolve the issues, but I don't want to do that unless it is alson applied in the x2 repo.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users