|
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-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Feb 07 17:00:01 2026 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.