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
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: 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

Pull Requests

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 Nov 21 11:01:29 2024 UTC