Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3438 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68477 invoked from network); 16 Jul 2003 08:23:40 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 16 Jul 2003 08:23:40 -0000 Received: (qmail 27595 invoked from network); 16 Jul 2003 08:23:38 -0000 Received: from localhost (HELO zeev-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 16 Jul 2003 08:23:38 -0000 Reply-To: zeev@zend.com Message-ID: <5.1.0.14.2.20030716112405.04d1d4b0@localhost> X-Sender: zeev@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 16 Jul 2003 11:26:20 +0300 To: Tony Bibbs Cc: internals@lists.php.net In-Reply-To: <3F0F128B.5070809@tonybibbs.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] php5 interfaces... From: zeev@zend.com (Zeev Suraski) References: <3F0F128B.5070809@tonybibbs.com> At 22:39 11/07/2003, Tony Bibbs wrote: >In PHP5 I noticed this behaviou with interfaces. If I have an interface >with a method that takes no paramaters, an implementing class for that >interfaces can have the same method take parameters...is that right? >For example: > >interface foo { > public function myFunction(); >} > >class foobar implements foo { > public function myFunction($someText) > { > echo $someText; > } >} > >$myObj = new foobar(); >$myObj->myFunction('Testing, 1, 2, 3'); > >This code works. To me it should flag an error or, at least a warning, no? Yep, it should error out, it's a bug. I'll look into it. Zeev