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');
?>

Rispondi quotando