|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-26 21:09 UTC] lstrojny@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 00:00:01 2025 UTC |
Description: ------------ I Have a Interface class, One normal class, if the normal class do not have all interfaces methods implements, an i call class_exists('my_normal_class_extends_interface'), the script is die, and no value is retorned. If the normal class have all methods defined, then work fine. Sorry for bad english. Reproduce code: --------------- Interface myInterface { public funtion foo(); } class normalClass implements myInterface{} var_dump(class_exists('normalClass')); Expected result: ---------------- i exptec php Reporting a fatal error, because the first 'normalClass', no implements all methods in interface myInterface Actual result: -------------- Php die, when call class_exists