1) php non da errore ma cmq è sbagliato abilita i notice impostando E_ALL in error_reporting nel php.ini