#26536 [NEW]: constant() should accept an Array in ZE2

From: Date: Sat, 06 Dec 2003 09:37:05 +0000
Subject: #26536 [NEW]: constant() should accept an Array in ZE2
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-51740@lists.php.net to get a copy of this message
From: rauh at onlinehome dot de Operating system: PHP version: 5.0.0b2 (beta2) PHP Bug Type: Feature/Change Request Bug description: constant() should accept an Array in ZE2 Description: ------------ I think since ZE2 and Class - Constants, constant() should accept an Array like call_user_func does. Reproduce code: --------------- $bar = 'aConstant'; echo constant(array('FooClass', $bar)) echo constant(array(new FooClass, $bar)) Expected result: ---------------- The Value of FooClass::aConstant Actual result: -------------- Array to String Conversion. -- Edit bug report at http://bugs.php.net/?id=26536&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26536&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26536&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26536&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26536&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26536&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26536&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26536&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26536&r=support Expected behavior: http://bugs.php.net/fix.php?id=26536&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26536&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26536&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26536&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26536&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26536&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26536&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26536&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26536&r=float

« previous php.bugs (#51740) next »