note 119625 added to migration70.new-features

From: Date: Tue, 19 Jul 2016 21:23:55 +0000
Subject: note 119625 added to migration70.new-features
Groups: php.notes 
Request: Send a blank email to php-notes+get-206056@lists.php.net to get a copy of this message
<?php class foo { static $bar = 'baz'; } var_dump('foo'::$bar); ?> if < php7.0 then we will receive a syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) but php7 returns string(3) "baz" I think it's not documented anywhere ---- Server IP: 72.52.91.14 Probable Submitter: 159.205.182.16 ---- Manual Page -- http://php.net/manual/en/migration70.new-features.php Edit -- https://master.php.net/note/edit/119625 Del: integrated -- https://master.php.net/note/delete/119625/integrated Del: useless -- https://master.php.net/note/delete/119625/useless Del: bad code -- https://master.php.net/note/delete/119625/bad+code Del: spam -- https://master.php.net/note/delete/119625/spam Del: non-english -- https://master.php.net/note/delete/119625/non-english Del: in docs -- https://master.php.net/note/delete/119625/in+docs Del: other reasons-- https://master.php.net/note/delete/119625 Reject -- https://master.php.net/note/reject/119625 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206056) next »