php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #22494 Additional functions needed for namespaces
Submitted: 2003-03-01 13:21 UTC Modified: 2014-12-30 10:41 UTC
From: andrew at evilwalrus dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5CVS-2003-03-01 (dev) OS: WinXP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: andrew at evilwalrus dot com
New email:
PHP Version: OS:

 

 [2003-03-01 13:21 UTC] andrew at evilwalrus dot com
With the advent of the new namespace {} context, how bout a few new functions to suit them?

A few off the top of my head:
  - get_namespace_classes (Retrieves a list of all classes in a namespace)
  - get_namespace_methods (Gets a list of all methods in a namespace)
  - get_namespace_vars (You guessed it, gets all vars..)

Just simple things like that... it could come in handy.  Just a thought.

~ Andrew Heebner

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-18 14:35 UTC] pollita@php.net
FYI:

get_namespace_classes() already exists as:
get_declared_classes($namespace)

 [2014-04-16 18:15 UTC] levim@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues
 [2014-04-16 18:15 UTC] levim@php.net
Unless the documentation is out of date, `get_declared_classes` does not accept a namespace parameter. Anyone know? Is there still interest in this?
 [2014-12-30 10:41 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 01:01:32 2024 UTC