|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-17 05:53 UTC] derick@php.net
[2004-03-17 06:04 UTC] fd@php.net
[2004-03-17 06:27 UTC] derick@php.net
[2004-03-17 07:56 UTC] fd@php.net
[2004-03-17 13:13 UTC] helly@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 22:00:01 2025 UTC |
Description: ------------ A implementation of a class whith a method which is not declared as in the interface should throw an error, which it does in php5b4 but not in the current HEAD. Reproduce code: --------------- <?php interface Person { function doSth($sWhat,$sWhere); } class Member implements Person { function doSth($sWhat) { echo "Person does ".$sWhat."\n"; } } $Member = new Member; $Member->doSth('nothing'); ?> Expected result: ---------------- Fatal error: Declaration of Member::doSth() must be the same as Person::doSth() Actual result: -------------- Person does nothing