Edit report at http://bugs.php.net/bug.php?id=54722&edit=1

 ID:                 54722
 Updated by:         fel...@php.net
 Reported by:        virusxd at o2 dot pl
 Summary:            Extend interface (adding a parameters)
-Status:             Open
+Status:             Bogus
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Windows 7 / IIS 7.5
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php




Previous Comments:
------------------------------------------------------------------------
[2011-05-12 17:58:19] virusxd at o2 dot pl

Description:
------------
I extend interface because I wish add more parameters.

But this code not works.



::Sory, This is my first time.

Test script:
---------------
interface iData{

        public function Get($name);

}



interface iCookie extends iData{

        public function Get($name, $details = false);

}





class Cookie implements iCookie{

        public function Get($name, $details = false){

                echo('TEST!');

        }

}

Expected result:
----------------
TEST!

Actual result:
--------------
Fatal error: Can't inherit abstract function iData::Get() (previously
declared abstract in iCookie) in C:\iCookie.php on line 4


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=54722&edit=1

Reply via email to