Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

request for E_STRICT to be hidden in PHP 5.4 via deprecated patch

Discussion in 'General Discussion' started by aww, Oct 24, 2012.

  1. aww

    aww Well-Known Member

    Feb 10, 2005
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Would it be possible for cpanel to also make E_STRICT warnings silent in the deprecated patch for PHP 5.4 ?

    We went to PHP 5.4 today with the newest easyapache and it went surprisingly smoothly.

    Biggest problem was all the strict warnings so we had to hop around to all the running code and manually change the error_reporting.


    Just to help others looking at 5.4, the biggest annoyance is that PHP 5.4 is going to find every bit of bad code on your server that 5.3 never noticed.

    We get a ton of "PHP Warning: Creating default object from empty value" which basically happens when you start manipulating things as objects in PHP before they are initialized as new stdClass(); (happens a bunch in WordPress and plugins).

    It won't stop anything from running but if you have display errors on by default you are going to see a mess.
  2. Infopro

    Infopro cPanel Sr. Product Evangelist Staff Member

    May 20, 2003
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    aww, I've moved your thread out of the old Feature Requests forum as we're about to move that area to read only. New Feature Requests can be posted on the new cPanel Feature Requests area located here:
    cPanel Feature Requests

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice