Support

Home Forums Event Espresso Premium PHP 7.2 Errors

PHP 7.2 Errors

Posted: November 15, 2018 at 10:32 am


cmccreery

November 15, 2018 at 10:32 am

Was planning to migrate to PHP 7.2 but after a scan, it is reporting a bunch of errors (not Warnings). I’m running the most recent version of EE 4.

https://gist.github.com/lorenzocaum/af063fc64ac6f413e708fd218f480215

Are these erorrs legit or does EE support PHP 7.2?

Thanks


Tony

  • Support Staff

November 15, 2018 at 10:50 am

Hi there

Are these erorrs legit or does EE support PHP 7.2?

They are false positives, in short the scanner is looking for functions within the files, not if they are actually used or not.

198 | ERROR | Extension ‘cpdf’ is removed since PHP 5.1; Use pecl/pdflib instead

False positive, DOMPDF (which we use to generat PDF’s) is backwards compatible and checks for various modules, cpdf being one of them, if newer libraries are available, it uses those.

1629 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead

False positive, EE itself is backwards compatible for PHP 5.4, it’s checking if ‘mysql_’ is in use, if not, it doesn’t try to use it.

336 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead

Same as above.

FOUND 22 ERRORS AFFECTING 10 LINES

All false positives, again EE is checking for which encryption library is available and uses the latest, it falls back to older modules if that’s all that is available.

We (the support and dev team) run EE on PHP7.2 (and older versions) during testing, sometimes a notice will be thrown with PHP7+ as functions get deprecated, however, we fix those before they actually become an issue (for example we update to use a different function way before the deprecated functions are removed from PHP).


cmccreery

November 15, 2018 at 10:53 am

Awesome! Thanks, just wanted to get the official response from you guys before making the move.

Thanks so much!


Tony

  • Support Staff

November 16, 2018 at 8:26 am

You’re most welcome.

You’ll likely see a good improvement on the site overall, we’ve seen some instances of switching to PHP7+ reducing the site latency of up to 50%.

It does depend on all of the code you are running on the site but its usually a noticeable difference either way.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 1 year, 10 months ago ago

Topic Tags

Tagged: 

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!