Bug #54052 [Opn->Bgs]: Incorrect Interface Implementation Not Displaying Errors
| From: | dtajchreber@php.net | Date: | Sun, 20 Feb 2011 05:51:47 +0000 |
| Subject: | Bug #54052 [Opn->Bgs]: Incorrect Interface Implementation Not Displaying Errors | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-158895@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54052&edit=1
ID: 54052
Updated by: dtajchreber@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