d'apres la doc http://fr2.php.net/manual/fr/language.oop5.static.php
L'appel non-statique à des méthodes statiques génère une alerte de degré E_STRICT.
mais moi ça me genere rien
Code : Tout sélectionner
<?php
error_reporting( E_ALL | E_STRICT );
class B
{
static $B =555;
function __construct()
{
}
static function toto()
{
echo self::$B;
}
}
$var = new B;
$var->toto();
Merci d'avance.