Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15873 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 400 invoked by uid 1010); 6 Apr 2005 15:03:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 385 invoked from network); 6 Apr 2005 15:03:14 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 6 Apr 2005 15:03:14 -0000 X-Host-Fingerprint: 80.168.8.116 iko.gotobg.net Linux 2.4/2.6 Received: from ([80.168.8.116:56826] helo=iko.gotobg.net) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id DA/05-19272-23AF3524 for ; Wed, 06 Apr 2005 11:03:14 -0400 Received: from p54a0c93f.dip.t-dialin.net ([84.160.201.63] helo=[192.168.0.41]) by iko.gotobg.net with esmtpa (Exim 4.43) id 1DJC3l-0004kk-NP for internals@lists.php.net; Wed, 06 Apr 2005 18:03:14 +0300 Message-ID: <4253FA2C.8010409@hristov.com> Date: Wed, 06 Apr 2005 17:03:08 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050219 MIME-Version: 1.0 To: PHP Internals List Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - iko.gotobg.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com X-Source: X-Source-Args: X-Source-Dir: Subject: [PATCH] class_implements() and class_parents() From: php@hristov.com (Andrey Hristov) Hi all, I have cooked up a patch that gives the possibility to use not only an object but a string value with class_implements() and class_parents() which are part of ext/spl. Unified diff: http://andrey.hristov.com/projects/php_stuff/patches/class_parents_implements.patch.txt Source snippet: http://andrey.hristov.com/projects/php_stuff/patches/class_parents_implements.c Test script: http://andrey.hristov.com/projects/php_stuff/patches/class_parents_implements.phpt Comments ? Andrey