Re: [RFC] Remove PHP 4 Constructors
| From: | Tony Marston | Date: | Sun, 18 Jan 2015 12:01:52 +0000 |
| Subject: | Re: [RFC] Remove PHP 4 Constructors | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80736@lists.php.net to get a copy of this message | ||
"Levi Morrison" wrote in message news:CAFMT4NoPoeOhGA+uoRSJRxosrh4k3eid96-jmMoQGhct8Uj9zg@mail.gmail.com...
On Sat, Jan 17, 2015 at 11:33 AM, Todd Ruth <truth@proposaltech.com> wrote:<<snip>>On Sat, 2015-01-17 at 10:56 -0700, Levi Morrison wrote:
According to the PHP.net documentation on E_STRICT(http://php.net/manual/en/migrating5.errorrep.php):But only when you use both PHP 4 and PHP 5 constructors at the same time. If a class uses ONLY the PHP 4 constructor then no message is generated at all. -- Tony MarstonWhen enabled, messages will be issued to warn you about code usage which is deprecated or which may not be future-proof.By very definition E_STRICT warns about this kind of thing. They've been there for *more than ten years*.