Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60938 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82496 invoked from network); 22 Jun 2012 16:26:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jun 2012 16:26:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vc0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:39853] helo=mail-vc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/8D-21324-1AC94EF4 for ; Fri, 22 Jun 2012 12:26:09 -0400 Received: by vcbfk1 with SMTP id fk1so1169493vcb.29 for ; Fri, 22 Jun 2012 09:26:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type:content-transfer-encoding; bh=p4gnOKXrJxcU2IAho0SmXjKJBhmo50tTv/xsnmgGkMU=; b=iaDaGqQxfVA6It9itEqcC/vVt7yl3kyXdH6f8iOL6LM/c+QzwX5A8UNGjednLfV0cp KYp6rfAFFpQcs2VHURxLcYuPKAIP9R029DH8AK4wXd31HneEW+BZRS7xPN5cIxotPtLj ScHMywQMN5Cgcensl2saR67PtokCeZclpb/wVGtYs7qbjCcyyaBqiyU6zFkcNCU0mhKv uQKbJEF9Azs4BPm+XWAwqAJxcp6hREBTcr2+LNS3n6g/0Uspda2BTQrEYKK9mopHKpxv AUvxl0QnAi6Hk4xNFXmRMwOA8XPn+geEXy3tTpAzgxfQcWWJNWjzE4JG5Clad2q16fYd a6rw== Received: by 10.52.98.8 with SMTP id ee8mr1166075vdb.58.1340382366985; Fri, 22 Jun 2012 09:26:06 -0700 (PDT) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.220.162.141 with HTTP; Fri, 22 Jun 2012 09:25:46 -0700 (PDT) Date: Sat, 23 Jun 2012 00:25:46 +0800 X-Google-Sender-Auth: 6jjo5BuqphEAlAyzrJLuDZkKyMA Message-ID: To: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Add parameter user_only to get_declared_classes(interfaces/traits) From: laruence@php.net (Laruence) Hi internalers: there comes a FR, #62343 https://bugs.php.net/bug.php?id=3D62343 the bug self is about class alias, but it also metioned a new parameter $user_only to get_declared_classes. the FR makes sense to me, for now, get_defined_functions 's return will points which functions are internal, and which is user defined. but get_declared_classes etc doesn't. so I made a patch https://bugs.php.net/patch-display.php?bug_id=3D62343&patch=3Dbug62343.phpt= &revision=3Dlatest yes, the patch have some room for improving, like promote the condition (ce->type =3D=3D ZEND_USER_CLASS) out of the iterating :) for now, I just what to see what do you think about this idea? :) (hope I made my point clear) thanks --=20 Laruence =C2=A0Xinchen Hui http://www.laruence.com/