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:
Hi,

> From: Andi Gutmans [mailto:[EMAIL PROTECTED]

> I rolled RC1 of RC1 (didn't change the version from -dev on
> purpose because
> RC1RC1 is kind of odd and I didn't want it to confuse people :).
> I will roll RC1 on the 17th so if there are "serious" show
> stoppers speak up.

<?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

-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to