Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13547 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68024 invoked by uid 1010); 26 Oct 2004 23:25:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 67961 invoked from network); 26 Oct 2004 23:25:48 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 26 Oct 2004 23:25:48 -0000 Received: (qmail 11169 invoked from network); 26 Oct 2004 23:25:47 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 26 Oct 2004 23:25:47 -0000 Message-ID: <5.1.0.14.2.20041026162535.0386e8f0@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 26 Oct 2004 16:25:43 -0700 To: Andrey Hristov ,internals@lists.php.net In-Reply-To: <417BA8FD.2050205@hristov.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] [PATCH] is_subclass_of(mixed, string) From: andi@zend.com (Andi Gutmans) References: <417BA8FD.2050205@hristov.com> Applied. Can you please update PHP 5.0 NEWS? Thanks, Andi At 03:07 PM 10/24/2004 +0200, Andrey Hristov wrote: > Hi, >I have cooked a small patch which allows is_subclass_of() the accept >not only an object as first parameter but a string as well. When string >is passed the function checks whether the class specified is subclass of >the second parameter >class a{} >class b{} extends a{} >is_subclass_of("a", "a") //false >is_subclass_of("b", "a") //true >currently only objects are allowed as first parameter > >The patch can be seen here : >http://www.hristov.com/andrey/projects/php_stuff/patches/is_subclass_of.patch.txt >The phpt file is : >http://www.hristov.com/andrey/projects/php_stuff/patches/is_subclass_of.phpt > >Thanks, >Andrey > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php