|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-10-13 07:32 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2014-10-13 07:32 UTC] requinix@php.net
[2014-10-13 07:50 UTC] klwang at klwang dot info
[2014-10-13 08:02 UTC] requinix@php.net
[2014-10-14 02:13 UTC] klwang at klwang dot info
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 01:00:02 2025 UTC |
Description: ------------ when gettext use in a class, it will be not work. with an error message like below: PHP Parse error: syntax error, unexpected '(', expecting ',' or ';' in /tmp/1.php on line 3 Test script: --------------- <? class class_test{ public static $i18n_test = _("i18n test"); } echo class_test::$i18n_test; ?> Expected result: ---------------- the gettext can use inside a class Actual result: -------------- gettext can not be used inside a class