Re: Bugs since php 5.4

2013 年 7 月 26 日3760

Hello, Since x10hosting uses php5.4, my coppermine galery had bugs. An upgrade to the last version didn't solve the problem. I had to make a lot of changes : For Strict Standards: Non-static method Inspekt::makeSuperCage() should not be called statically in /include/init.inc.php on line 42 PHP $superCage = Inspekt::makeSuperCage($str ict); 

was replaced by

PHP $inspekt = new Inspekt();

$superCage = $inspekt->makeSuperCage($strict); 

For Strict Standards: Non-static method Inspekt_Supercage::Factory() should not be called statically in /include/inspekt.php on line 282

PHP $_scinstance = Inspekt_Supercage::Factor y($strict); 

was replaced by

PHP $inspekt_supercage = new Inspekt_Su percage();

$_scinstance = $inspekt_supercage->Factory($strict); 

For "Strict Standards: Non-static method Inspekt::makeGetCage() should not be called statically, assuming $this from incompatible context in /include/inspekt/supercage.php on line 124

Strict Standards: Non-static method Inspekt::makePostCage() should not be called statically, assuming $this from incompatible context in /include/inspekt/supercage.php on line 125

Strict Standards: Non-static method Inspekt::makeCookieCage() should not be called statically, assuming $this from incompatible context in /include/inspekt/supercage.php on line 126

Strict Standards: Non-static method Inspekt::makeEnvCage() should not be called statically, assuming $this from incompatible context in /include/inspekt/supercage.php on line 127

Strict Standards: Non-static method Inspekt::makeFilesCage() should not be called statically, assuming $this from incompatible context in /include/inspekt/supercage.php on line 128

Strict Standards: Non-static method Inspekt::makeServerCage() should not be called statically, assuming $this from incompatible context in include/inspekt/supercage.php on line 134"

PHP  $inspekt = new Inspekt();

      $this->get   = $inspekt->makeGetCage($strict);

      $this->post   = $inspekt->makePostCage($strict);

      $this->cookie   = $inspekt->makeCookieCage($strict);

      $this->env   = $inspekt->makeEnvCage($strict);

      $this->files   = $inspekt->makeFilesCage($strict);

       &nbsp ;/**

        &n bsp;* Don't put session in&nbs p;cage as it will nullify&nbsp ;$_SESSION and we will loose&n bsp;the session completely.

        &n bsp;* TODO: Find a way to  put the session data in& nbsp;cage and still retain the  session correctly

        &n bsp;*/

      //$this->session=  $inspekt->makeSessionCage($strict);

      $this->server   = $inspekt->makeServerCage($strict); 

Etc.

Another way to solve the problem would be to edit php.ini like explained here

http://http://www.zjjv.com///...c,75836.0.html

I tell you this because i've seen that i have the same issue with Joomla.

See More Recommended Thread:

0 0