- Core:
. Fixed bug #70555 (fun_get_arg() on unsetted vars return UNKNOW). (Laruence)
+ . Fixed bug #70548 (Redundant information printed in case of uncaught engine
+ exception). (Laruence)
. Fixed bug #70547 (unsetting function variables corrupts backtrace).
(Laruence)
. Fixed bug #70528 (assert() with instanceof adds apostrophes around class
try {
var_dump($function($value));
} catch (TypeError $e) {
- echo "*** Caught " . $e->getMessage() . PHP_EOL;
+ echo "*** Caught ", $e->getMessage(), " in ", $e->getFile(), " on line ", $e->getLine(), PHP_EOL;
}
}
}
fclass = "";
}
- if (zf->common.type == ZEND_USER_FUNCTION) {
- zend_type_error("Return value of %s%s%s() must %s%s, %s%s returned in %s on line %d",
- fclass, fsep, fname, need_msg, need_kind, returned_msg, returned_kind,
- ZSTR_VAL(zf->op_array.filename), EG(current_execute_data)->opline->lineno);
- } else {
- zend_type_error("Return value of %s%s%s() must %s%s, %s%s returned",
- fclass, fsep, fname, need_msg, need_kind, returned_msg, returned_kind);
- }
+ zend_type_error("Return value of %s%s%s() must %s%s, %s%s returned",
+ fclass, fsep, fname, need_msg, need_kind, returned_msg, returned_kind);
}
static ZEND_COLD void zend_verify_internal_return_error(const zend_function *zf, const char *need_msg, const char *need_kind, const char *returned_msg, const char *returned_kind)