diff --git a/Zend/tests/bug26802.phpt b/Zend/tests/bug26802.phpt index 9681e9051e9..beb06cdd735 100755 --- a/Zend/tests/bug26802.phpt +++ b/Zend/tests/bug26802.phpt @@ -1,5 +1,5 @@ --TEST-- -#26802 (Can't call static method using a variable) +Bug #26802 (Can't call static method using a variable) --FILE-- function_table, method, strlen(method)+1, (void **) &function) == FAILURE) { + efree(lcname); + zend_error(E_ERROR, "Call to undefined method %s()", function_name_strval); + } + } else { + efree(lcname); + zend_error(E_ERROR, "Call to method of undefined class %s()", function_name_strval); + } + } else { + efree(lcname); + zend_error(E_ERROR, "Call to undefined function %s()", function_name_strval); + } } efree(lcname);