1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 09:28:21 +02:00

MFH: no need to throw E_ERROR here

This commit is contained in:
Antony Dovgal
2006-06-27 19:58:43 +00:00
parent 5c97837ca2
commit badf27fb2a
+2 -1
View File
@@ -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) {