summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2003-11-18 09:25:04 +0000
committerAndi Gutmans <andi@php.net>2003-11-18 09:25:04 +0000
commitc0df450203da09ff2e73f76b739a61ee8a83771d (patch)
treeee4dc42b8c4eb4fe108ecdbf9b4dba75e5fdda29 /Zend/zend_builtin_functions.c
parent26b57724556af6902c2b6136c35e0ec513896e6f (diff)
downloadphp-git-c0df450203da09ff2e73f76b739a61ee8a83771d.tar.gz
- Add E_STRICT, to be used to warn purists (like Jani :)
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r--Zend/zend_builtin_functions.c1
1 files changed, 1 insertions, 0 deletions
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);
}
/* }}} */