Re: [PHP-DEV] Declare directive to change engine version basis

2016-11-18 Thread Stephen Reay
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

Re: [PHP-DEV] Declare directive to change engine version basis

2016-11-18 Thread Daniel Morris
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

[PHP-DEV] Declare directive to change engine version basis

2016-11-18 Thread David Rodrigues
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