Edit report at http://bugs.php.net/bug.php?id=54052&edit=1
ID: 54052 Updated by: dtajchre...@php.net Reported by: rprice at wpi dot edu Summary: Incorrect Interface Implementation Not Displaying Errors -Status: Open +Status: Bogus Type: Bug Package: Class/Object related Operating System: Ubuntu 10.10 PHP Version: 5.3.5 Block user comment: N Private report: N New Comment: Check your error_reporting and display_errors settings. I get fatal error on every version I tested: http://codepad.org/cTtDfbrK /* 5.2.5 */ http://codepad.org/ejpAWQ9S /* 5.3.6-dev */ http://codepad.viper-7.com/o7ROKd /*5.3.99-dev */ Previous Comments: ------------------------------------------------------------------------ [2011-02-19 04:02:31] rprice at wpi dot edu Description: ------------ A class Foo implements an interface IFoo. When Foo implements a method with less parameters than the expected parameter count as specified by IFoo, PHP terminates with no errors. The sample script demonstrates this because the 'Checkpoint' is never echoed. Test script: --------------- <?php interface IFoo { public function method($one); } class Foo implements IFoo { public function method() {} } echo 'Checkpoint'; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54052&edit=1