: Request #37923 :: Display constant value in reflection::export

 [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 ] { }
  }