|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-05-21 02:14 UTC] felipe@php.net
-Status: Open
+Status: Bogus
[2011-05-21 02:14 UTC] felipe@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 22:00:01 2025 UTC |
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