summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-06-27 19:58:43 +0000
committerAntony Dovgal <tony2001@php.net>2006-06-27 19:58:43 +0000
commitbadf27fb2a082cd37993abaa78d1e2bf6abf48dc (patch)
tree97c11fefc787208311a6e0671f41f7e265fc9773 /Zend/zend_builtin_functions.c
parent5c97837ca201bd9b8d8f8cd4f84685f097b933cc (diff)
downloadphp-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.c3
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) {