|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2006-03-06 20:48 UTC] helly@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 12:00:01 2025 UTC | 
Description: ------------ When you use is_callable to check if a method is callable on an interface, it returns true which might be because Classes and Interfaces share the same namespace. Reproduce code: --------------- interface MyInterface { function callableFunc(); } if (is_callable(array("MyInterface", "callableFunc"))) { print("Is callable!"); call_user_func(array("MyInterface", "callableFunc")); } else { print("Is NOT callable!"); } Expected result: ---------------- Is NOT callable! Actual result: -------------- Is callable! Fatal error: Cannot call abstract method MyInterface::callableFunc() in path/to/file on line ###