From c0df450203da09ff2e73f76b739a61ee8a83771d Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Tue, 18 Nov 2003 09:25:04 +0000 Subject: - Add E_STRICT, to be used to warn purists (like Jani :) --- Zend/zend_builtin_functions.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Zend/zend_builtin_functions.c') diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index d4839a7168..252ebf4ed2 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -648,6 +648,7 @@ ZEND_FUNCTION(is_subclass_of) Returns true if the object is of this class or has this class as one of its parents */ ZEND_FUNCTION(is_a) { + zend_error(E_STRICT, "is_a(): Deprecated. Please use the instanceof operator"); is_a_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0); } /* }}} */ -- cgit v1.2.1