The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

    Joined:
    Feb 10, 2005
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    16
    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

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    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

    Thanks!
     
Loading...

Share This Page