diff options
author | Antony Dovgal <tony2001@php.net> | 2006-06-27 19:58:43 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-06-27 19:58:43 +0000 |
commit | badf27fb2a082cd37993abaa78d1e2bf6abf48dc (patch) | |
tree | 97c11fefc787208311a6e0671f41f7e265fc9773 /Zend/zend_builtin_functions.c | |
parent | 5c97837ca201bd9b8d8f8cd4f84685f097b933cc (diff) | |
download | php-git-badf27fb2a082cd37993abaa78d1e2bf6abf48dc.tar.gz |
MFH: no need to throw E_ERROR here
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r-- | Zend/zend_builtin_functions.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |