Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12340 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61909 invoked by uid 1010); 25 Aug 2004 00:44:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 61790 invoked from network); 25 Aug 2004 00:44:35 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 25 Aug 2004 00:44:35 -0000 Received: (qmail 19004 invoked from network); 25 Aug 2004 00:44:33 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 25 Aug 2004 00:44:33 -0000 Message-ID: <5.1.0.14.2.20040824174427.02e1e080@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 24 Aug 2004 17:44:33 -0700 To: Andrey Hristov ,internals@lists.php.net In-Reply-To: <412BD8A5.7080608@php.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] [PATCH] interface_exists() From: andi@zend.com (Andi Gutmans) References: <412BD8A5.7080608@php.net> Applying right now. Thanks. Andi At 12:09 AM 8/25/2004 +0000, Andrey Hristov wrote: > Hi, >today I saw a note left by a person in the documentation on php.net >about the lack of function named interface_exists(). Currently there is >class_exists() which returns true always when the name is a declared >class or a known interface. However an interface is not a class, some >will say that it is a pure abstract class - that's true but the name is >different >and we already have abstract classes. In addition classes and interfaces >are differentiated by get_declared_classes() and get_declared_interfaces(). >There is a small BC in the case since the patch also makes class_exists() >to return false when the name is a name of a known interface. We are >only 2 months from 5.0.0 and this fix inconsitency. The patch is agains >5.1.0-dev >but can be easily used against 5.0.2-dev . > I will be very happy if it will be accepted and someone with karma > commits it. > >The patch is here : >http://hristov.com/andrey/projects/php_stuff/patches/interface_exists.patch.txt > >Thanks, >Andrey > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php