#37923 [NEW]: Display constant value in reflection::export

From: Date: Tue, 27 Jun 2006 07:29:03 +0000
Subject: #37923 [NEW]: Display constant value in reflection::export
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98816@lists.php.net to get a copy of this message
From: hannes dot magnusson at gmail dot com Operating system: * PHP version: 5CVS-2006-06-27 (CVS) PHP Bug Type: Feature/Change Request Bug description: Display constant value in reflection::export 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 ] { } } -- Edit bug report at http://bugs.php.net/?id=37923&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37923&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37923&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37923&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37923&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37923&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37923&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37923&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37923&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37923&r=support Expected behavior: http://bugs.php.net/fix.php?id=37923&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37923&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37923&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37923&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37923&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37923&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37923&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37923&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37923&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37923&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37923&r=mysqlcfg

« previous php.bugs (#98816) next »