note 120336 deleted from migration71.other-changes by cmb
| From: | cmb@php.net | Date: | Thu, 22 Nov 2018 18:18:18 +0000 |
| Subject: | note 120336 deleted from migration71.other-changes by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-209757@lists.php.net to get a copy of this message | ||
Note Submitter: ksours at internbrands dot com
----
It isn't documented anywhere that I can find, but there is another change to the string
warnings in php7.1
$x = "";
$x['foo'] = 'bar';
Will quietly convert $x to an array in php70. In php71 it will emit a warning and set the first
character of $x to 'b' (roughly interpreting the line as $x[0] = 'b';)