|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-05-02 11:24 UTC] andrey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Mar 02 15:00:01 2026 UTC |
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.