Re: [PATCH] is_subclass_of(mixed, string)
| From: | Andi Gutmans | Date: | Tue, 26 Oct 2004 23:25:43 +0000 |
| Subject: | Re: [PATCH] is_subclass_of(mixed, string) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13547@lists.php.net to get a copy of this message | ||
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