|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-12-31 00:37 UTC] cmb@php.net
-Package: Feature/Change Request
+Package: Scripting Engine problem
[2021-07-26 13:32 UTC] cmb@php.net
-Status: Open
+Status: Wont fix
-Assigned To:
+Assigned To: cmb
[2021-07-26 13:32 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 04:00:01 2025 UTC |
Description: ------------ Can static keywords like self:: parent:: ... be supported when using sth like {self::$varname} in HEREDOC ? Reproduce code: --------------- <?php class static_test{ static public $name = 'sskaje'; static public function test() { $string = <<<HEREDOC Hello, {self::$name}; HEREDOC; echo $string; } } static_test::test(); Expected result: ---------------- Hello, sskaje; Actual result: -------------- Notice: Undefined variable: name in G:\wwwroot\Test\static_call.php on line 8 Hello, {self::};