For Programmers: Free Programming Magazines  


Home > Archive > PHP Questions and Answers > March 2004 > RE: [PHP-DEV] RC1 of RC1









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-DEV] RC1 of RC1
Andi Gutmans

2004-03-19, 12:53 pm

Only if you use E_STRICT. There was a long discussion about this on
internals@ a few ws ago.

At 11:57 AM 3/17/2004 +0100, Clemens Gutweiler wrote:
>Hi,
>
>
>
><?php
>
> interface 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?
>
>Current HEAD:
>
>$ /usr/local/php-5-fastcgi-200303171147/bin/php -f
>/web/finalconstruct.php
>wake up on monday
>
>Clemens

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com