Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74347 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28979 invoked from network); 19 May 2014 08:44:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 May 2014 08:44:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.48 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.192.48 mail-qg0-f48.google.com Received: from [209.85.192.48] ([209.85.192.48:65149] helo=mail-qg0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/C5-05762-554C9735 for ; Mon, 19 May 2014 04:44:06 -0400 Received: by mail-qg0-f48.google.com with SMTP id i50so8283772qgf.35 for ; Mon, 19 May 2014 01:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tW8wtYTvAqG+vur87D1wLkCei/8Uc6E1AxsuFfab7ew=; b=ghpbBrnNu6N8NAudsQ9WeqRvcSlJ4FQwvsFEFiwQ/Yg9M4QdlQnui2JGduEtrCuZML 8ltAqFw9nc1v0HUOEhzACRGEOluy7Mn3UVMDfNwUj0U8pK5dQhHStoxSmj1MAg5Vt6y7 XCOFnUzSNN8t4sCKeyVVcLsTUmn9PM6VTpDYDta6W4X8fygOS7W2m6vwcCV5Uk8DSJ+u +55VL+EVoU0rhXbieagj3dFpbzcpGLm0CjVc6QF++0HLYKg9KM+8WQ0zZ5MD6GeqYiyw jm/g4r1mr4lG9ovNCOFzTrH8YK3WyaCamr6RM3wYVBtHkHj8JfogFwyZHHEGA36xyRXy ZVpg== MIME-Version: 1.0 X-Received: by 10.229.65.138 with SMTP id j10mr47494031qci.10.1400489042615; Mon, 19 May 2014 01:44:02 -0700 (PDT) Received: by 10.140.88.164 with HTTP; Mon, 19 May 2014 01:44:02 -0700 (PDT) In-Reply-To: References: Date: Mon, 19 May 2014 01:44:02 -0700 Message-ID: To: Aaron Lewis Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11339810e5a1f004f9bcc38c Subject: Re: [PHP-DEV] Enumerate visible class names in current scope From: kris.craig@gmail.com (Kris Craig) --001a11339810e5a1f004f9bcc38c Content-Type: text/plain; charset=UTF-8 On Mon, May 19, 2014 at 1:28 AM, Aaron Lewis wrote: > Hi, > > Is it possible to enumerate all visible class name in current scope? > > If not names, a zval like structure is nice as well. > > Thanks! > > -- > Best Regards, > Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ > Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > I know you can use get_declared_classes() to iterate through ALL declared classes, but I don't know how it behaves with regard to scope and visibility. I do know that it includes both user-defined and predefined classes in its output. --Kris --001a11339810e5a1f004f9bcc38c--