Re: RC1, instanceof?

From: Date: Mon, 08 Aug 2005 09:48:18 +0000
Subject: Re: RC1, instanceof?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-17580@lists.php.net to get a copy of this message
Hello, I took a short look to the implementation. instanceof_ex works as expected, no error display there. The problem comes from the usage of class_name_reference in the parser. class_name_reference calls zend_do_fetch_class, which raises this error as no class is loaded. Now I'm not sure about a clean solution, it's fine to raise a fatal error when class_name_reference is used with new, but in the case of instanceof, it does not make sense. add a class_name_reference_silent? :) --Pierre

« previous php.internals (#17580) next »