Hi David,
If you wanted to do this, couldn’t you simply use the following, already:
set_error_handler(
function (int $err_severity, string $err_msg, string $err_file, int
$err_line, array $err_context) {
throw new ErrorException($err_msg, 0, $err_severity, $err_file,
$er
I think this would create a lot of additional work for internals
maintainers, and the current system of throwing an E_DEPRECATED already
allows for developers to prepare their applications for future versions
by turning on error reporting and checking their logs.
--
Daniel Morris
dan...@honestempi
Hello.
I like to propose a creation of a new declare() directive that allows
"emulates a future engine version". And where I say engine I mean PHP
itself.
-
It should works like it (eg. for engine version "7.0.13"):
declare( {{parameter}} = {{php_version_id}} );
// Examples (one of tha