Re: [RFC] Remove PHP 4 Constructors
| From: | Andrea Faulds | Date: | Thu, 15 Jan 2015 16:55:10 +0000 |
| Subject: | Re: [RFC] Remove PHP 4 Constructors | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80570@lists.php.net to get a copy of this message | ||
Hey Levi,
Upon further thought, I’m not super-enthusiastic about this. As has been pointed out, it’s a
pretty serious BC break, whether code can be automatically updated or not. PHP 4 constructors may be
obsolete, but an awful lot of code uses them.
A better solution, IMO, might be simply to add a deprecation notice. This would make it obvious
during development if you’ve accidentally defined a PHP4 constructor, and would encourage
migration away from them, but wouldn’t prevent existing code from working.
Thoughts?
--
Andrea Faulds
http://ajf.me/