Req #46658 [Opn->Wfx]: static keywords supports in{} in heredoc

From: Date: Mon, 26 Jul 2021 13:32:35 +0000
Subject: Req #46658 [Opn->Wfx]: static keywords supports in{} in heredoc
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235361@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=46658&edit=1 ID: 46658 Updated by: cmb@php.net Reported by: sskaje at gmail dot com Summary: static keywords supports in{} in heredoc -Status: Open +Status: Wont fix Type: Feature/Change Request Package: Scripting Engine problem Operating System: ** PHP Version: 5.3.0alpha2 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: No progress for more than ten years, so I'm closing as WONTFIX. Anybody who is still interested in this feature, please pursue the RFC process[1]. [1] <https://wiki.php.net/rfc/howto> Previous Comments: ------------------------------------------------------------------------ [2008-11-24 04:29:21] sskaje at gmail dot com 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::}; ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=46658&edit=1

« previous php.bugs (#235361) next »