Re: inheritance check too strict?
| From: | Reindl Harald | Date: | Fri, 20 Aug 2010 13:24:00 +0000 |
| Subject: | Re: inheritance check too strict? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49479@lists.php.net to get a copy of this message | ||
You can not reproduce as long your php is misconfigured
error_reporting = E_ALL | E_STRICT
We are using this setting on ALL our production servers
to develop really clean applications
Strict Standards: Declaration of ObjChild::set() should be compatible with that
of ObjParent::set() in /home/harry/Desktop/test.php on line 8
Am 20.08.2010 15:10, schrieb Jonathan Bond-Caron:
> Oops, thanks :)
>
> Maybe Stas can comment but I can't reproduce the E_STRICT warning
> Is this php HEAD?
>
> class ObjParent {
> function set($param2 = '') {}
> }
>
> class ObjChild extends ObjParent {
> function set(){ echo "."; }
> }
>
> $o = new ObjChild;
> $o->set(); // runtime E_STRICT warning?
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc