Re: RC1 of RC1
| From: | Hans Lellelid | Date: | Wed, 17 Mar 2004 12:16:01 +0000 |
| Subject: | Re: RC1 of RC1 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8556@lists.php.net to get a copy of this message | ||
Hi -
Andi Gutmans wrote:
Only if you use E_STRICT. There was a long discussion about this on internals@ a few weeks ago. At 11:57 AM 3/17/2004 +0100, Clemens Gutweiler wrote:I must have missed / mis-understood the final decision on that. I would have also expected that this code would still be raising E_FATAL. I thought that the decision to not enforce strict signatures was for class inheritance (becuase of common practice of overriding parent signatures in PHP4), but that interfaces would enforce signatures (but might allow for additional optional params in methods of implementing classes). Hans<?phpinterface person { function wakeup( $day, $time ); }class hugo implements person { function wakeup( $day ) { printf( "wake up on $day\n" ); } }$hugo = new hugo; $hugo->wakeup( 'monday' );?> Shouldn't this throw an fatal error because wakeup isn't complete implemented?