[Php-it] Errore, bug o che? > Class entry requested for an object without

Domenico L. domenico.lorusso at pleiade.it
Tue Apr 3 17:12:48 CEST 2007


Matteo C. - MIF ha scritto:
>
> Ciao, mi ritrovo ad avere uno strano comportamento di php5. [..]
>    function add_option_group ($opt_group) {
>
>        if (!is_a($opt_group, 'Optgroup')) return false; # < Riga 
> incriminata: se la commento funziona tutto come sempre!

"In PHP 5 la funzione *is_a()* è sconsigliata in favore di instanceof 
<language.operators.type.html>."


ciao (anche se dovrebbe funzionarti uguale :-)  )

-- 
Domenico L.        	 icq: 645 44 861 - msn: strahd a jumpy.it

per stupire mezz'ora basta un libro di storia,
io cercai di imparare la Treccani a memoria... [F.d.A.]



More information about the Php-it mailing list