Re: RfC: rethink OO inheritance strictness

From: Date: Thu, 03 Aug 2006 09:32:35 +0000
Subject: Re: RfC: rethink OO inheritance strictness
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  Groups: php.internals 
Request: Send a blank email to internals+get-25177@lists.php.net to get a copy of this message
Derick Rethans wrote: > Sure, but then that code won't run on older versions of PHP (5.1 f.e.) > anymore, so it is not a good solution. The same was true for PPP. But like you I prefer the E_STRICT version without modifying the language though. But I'm sharing Lukas' concern about the definition of E_STRICT: Is it to be changed to E_ERROR at some point? Otherwise E_NOTICE would be more appropriate IMHO. Whatever solution is implemented I propose to relax the test to not test static functions (e.g. useful for factory methods) and to allow adding default values to functions (the object of the inherited class still accepts the same parameters as the base class). A patch is attached. - Chris

« previous php.internals (#25177) next »