update php from 7.0 to 7.3

67 views
Skip to first unread message

v.

unread,
Apr 1, 2019, 5:01:38 AM4/1/19
to Fat-Free Framework
I want to update my PHP version to 7.3 (still on 7.0)
Will this in any way effect my F3 apps? What are the possible pitfalls?
I am running the latest version of F3 (3.6.5), I assume this has been tested on PHP 7.3?

ved

unread,
Apr 1, 2019, 7:12:49 AM4/1/19
to Fat-Free Framework
Hi,
 
I want to update my PHP version to 7.3 (still on 7.0)

I'm running PHP 7.3 without any issues so I'm guessing it will be fine.
 
Will this in any way effect my F3 apps? What are the possible pitfalls?

It will most likely have no ill effects, but, as with any major change/migration, you should do it first on a staging server and test it out thoroughly before deploying the changes live.

Good luck.
  

v.

unread,
Apr 30, 2019, 3:36:09 AM4/30/19
to Fat-Free Framework
Because of hoster issues (I really should switch to another one....) I was only able to get the server updated last night, and they updated to 7.2, because 7.3 still had issues in combination with their control panel (?!)
A few things broke and I am now trying to get them to work again.
One weird thing I have found and do not understand is that f3 will now break when using this in a view:
{{ @report.my-ratio }}
This throws a 500 error because the interpreter now transforms this to:
$report['my']-ratio
(it worked in 7.0)
Removing the dash or replacing with
@report['my-ratio']
makes it work again, but what is the correct way to put this in the view using the dot notation?

xfra35

unread,
Apr 30, 2019, 5:56:44 AM4/30/19
to Fat-Free Framework
As far as I know, the framework has never allowed dashes in JS-style expressions (just like JS forbids it too).

I cannot imagine how it could have worked previously in your code, unless you were hitting a particular PCRE bug.

v.

unread,
Apr 30, 2019, 6:57:26 AM4/30/19
to Fat-Free Framework
Well, this is weird...
I can assure you it worked in php 7.0, good to know this is not supposed to be used then.
Reply all
Reply to author
Forward
0 new messages