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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Sat Dec 21 15:01:29 2024 UTC