php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #37923 Display constant value in reflection::export
Submitted: 2006-06-27 07:29 UTC Modified: 2006-09-11 17:09 UTC
From: hannes dot magnusson at gmail dot com Assigned: johannes (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 5CVS-2006-06-27 (CVS) OS: *
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: hannes dot magnusson at gmail dot com
New email:
PHP Version: OS:

 

 [2006-06-27 07:29 UTC] hannes dot magnusson at gmail dot com
Description:
------------
Display the value of constants..

Reproduce code:
---------------
php5$ sapi/cli/php --re standard | grep Constant

php5$ sapi/cli/php -r 'class foo { const bar = 10; } reflectionclass::export("foo");'


Expected result:
----------------
  - Constants [282] {
    Constant [ integer CONNECTION_ABORTED ] { 1 }
...

Class [ <user> class foo ] {
  @@ Command line code 1-1

  - Constants [1] {
    Constant [ integer bar ] { 10 }
  }


Actual result:
--------------
  - Constants [282] {
    Constant [ integer CONNECTION_ABORTED ] { }
...

Class [ <user> class foo ] {
  @@ Command line code 1-1

  - Constants [1] {
    Constant [ integer bar ] { }
  }


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-11 17:09 UTC] johannes@php.net
This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC