Originariamente inviato da filippo.toso
Dipende da PHP 5 e dalla sua configurazione (error_reporting => E_STRICT). Studiati questo codice:

Codice PHP:
<?php 

ini_set
('display_errors'1);

class 
Test {
    public function 
Method($error_level) {
        echo(
"Test::Method() with {$error_level}");
    }
}

error_reporting(E_ALL);

Test::Method('E_ALL');

error_reporting(E_ALL E_STRICT);

Test::Method('E_ALL | E_STRICT');

?>

Restituisce questo errore:

Test::Method() with E_ALL
Strict Standards: Non-static method Test::Method() should not be called statically in /var/www/vhosts/miosito.it/httpdocs/t.php on line 17
Test::Method() with E_ALL | E_STRICT