Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74348 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31275 invoked from network); 19 May 2014 09:04:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 May 2014 09:04:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=the.warl0ck.1989@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=the.warl0ck.1989@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.46 as permitted sender) X-PHP-List-Original-Sender: the.warl0ck.1989@gmail.com X-Host-Fingerprint: 209.85.219.46 mail-oa0-f46.google.com Received: from [209.85.219.46] ([209.85.219.46:59598] helo=mail-oa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E9/26-05762-239C9735 for ; Mon, 19 May 2014 05:04:50 -0400 Received: by mail-oa0-f46.google.com with SMTP id i4so5865763oah.19 for ; Mon, 19 May 2014 02:04:47 -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=ocn86+cL22Ky+3VDCKOQ+5wovL40FXrvcdhmi6eDiiQ=; b=vwDADiAmFlJeVyMRse5VgwOmCpxNOkIfmBobxiD54AxhWU9avSkgSf211RjSlRuuH7 PGsmfpaQt+kLEu0d4FJwBeqzT0k066eVs4juYyjX2ACyjzyjd7SQVE33rGfcP3Xg7g4P wJyKq3m0+i/gCg0wHFqiprVrIPFIRbJ58YVQklFL1/XJo3WXT4oi0rUhylo3Cd0wlFYz X9+ttjHk5sx9tb8vMu4nvlUTqm8dx7jwcvLj928rU5SJZpODE4vvFO8hnqPzsrLoWAnA BgfEaGCE+UW7vfgG7xMAI9VVSDWVyHTKbLrX5kunBJX7Dywz/HxFFxKtAIqguEcB4SIM 7gEA== MIME-Version: 1.0 X-Received: by 10.182.43.132 with SMTP id w4mr34497243obl.41.1400490287071; Mon, 19 May 2014 02:04:47 -0700 (PDT) Received: by 10.76.23.66 with HTTP; Mon, 19 May 2014 02:04:47 -0700 (PDT) In-Reply-To: References: Date: Mon, 19 May 2014 17:04:47 +0800 Message-ID: To: Kris Craig Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Enumerate visible class names in current scope From: the.warl0ck.1989@gmail.com (Aaron Lewis) Hi Kris, Thanks for the quick reply. I found class_table HashTable structure in that zend function. But, do you know how to tell between user-defined classes and predefined ones? On Mon, May 19, 2014 at 4:44 PM, Kris Craig wrote: > > > > 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 > -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33