From badf27fb2a082cd37993abaa78d1e2bf6abf48dc Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 27 Jun 2006 19:58:43 +0000 Subject: [PATCH] MFH: no need to throw E_ERROR here --- Zend/zend_builtin_functions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 87ead12e3a..500c3c8879 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -544,7 +544,8 @@ ZEND_FUNCTION(get_class) if (EG(scope)) { RETURN_STRINGL(EG(scope)->name, EG(scope)->name_length, 1); } else { - zend_error(E_ERROR, "get_class() called without object from outside a class"); + zend_error(E_WARNING, "get_class() called without object from outside a class"); + RETURN_FALSE; } } if (ZEND_NUM_ARGS()!=1 || zend_get_parameters_ex(1, &arg)==FAILURE) { -- 2.50.1