|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-31 20:01 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 12:00:02 2025 UTC |
Description: ------------ PHP accepts keyword 'static' in assignment. Reproduce code: --------------- <?php class foo { static $a = 1; public function __construct() { $a = static ::$a; var_dump($a); } } new foo; Expected result: ---------------- Parse error: syntax error, unexpected T_STATIC Actual result: -------------- No error.