php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #15734 get_defined_constants() feature
Submitted: 2002-02-26 12:11 UTC Modified: 2003-02-06 21:05 UTC
From: benjamin at benjamin dot hu Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.1.1 OS: ALL
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: benjamin at benjamin dot hu
New email:
PHP Version: OS:

 

 [2002-02-26 12:11 UTC] benjamin at benjamin dot hu
Hi developers!

The get_defined_constants()?could have?some parameters,?like this?[type]:

- SYSTEM_DEFINES/SYSTEM_CONSTANS
- USER_DEFINES/USER_CONSTANS
- ALL_DEFINES/ALL_CONSTANS

and this two [prefix] and [mode] which could be left :

it is looking for a text which contains [prefix] in the firs/last part of define [mode]

possibly in the get_defined_vars() too :)

or similar to the get_defined_functions() [internal] [user]

thx, Benjamin

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-06 21:05 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Will be part of PHP 5.0, optional parameter to get_defined_constants() will make the output break down the constants into categories.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 13:01:30 2024 UTC