|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2017-05-12 14:41 UTC] peehaa@php.net
 
-Status: Open
+Status: Not a bug
  [2017-05-12 14:41 UTC] peehaa@php.net
  [2017-05-12 18:46 UTC] requinix@php.net
 
-Package: PHP Language Specification
+Package: Class/Object related
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 07:00:01 2025 UTC | 
Description: ------------ I received the error igor@nt-pronon06:/var/www/html/testes$ php interface.php PHP Catchable fatal error: Argument 1 passed to MeToo::meToo() must implement interface Key, none given, called in /var/www/html/testes/interface.php on line 32 and defined in /var/www/html/testes/interface.php on line 22 PHP Stack trace: PHP 1. {main}() /var/www/html/testes/interface.php:0 PHP 2. MeToo->meToo() /var/www/html/testes/interface.php:32 The php5 Still considers method with same class name as class constructor? Its was in php4? I'm using php 5.6.11 Test script: --------------- https://gist.github.com/IgorDePaula/e0d20c4528318dbbebb75661d9d0f4b5 Expected result: ---------------- None error given Actual result: -------------- igor@nt-pronon06:/var/www/html/testes$ php interface.php PHP Catchable fatal error: Argument 1 passed to MeToo::meToo() must implement interface Key, none given, called in /var/www/html/testes/interface.php on line 32 and defined in /var/www/html/testes/interface.php on line 22 PHP Stack trace: PHP 1. {main}() /var/www/html/testes/interface.php:0 PHP 2. MeToo->meToo() /var/www/html/testes/interface.php:32