[php-src] Issue #8055: PHP 8.0 how to append strings to unknown SESSION variables in a clean concise way without Warnings
| From: | kamil-tekiela | Date: | Mon, 07 Feb 2022 17:06:36 +0000 |
| Subject: | [php-src] Issue #8055: PHP 8.0 how to append strings to unknown SESSION variables in a clean concise way without Warnings | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239543@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8055
Comment Author: kamil-tekiela
What's wrong with this?
```
<?php
session_start();
$_SESSION['message'] ??= '';
$_SESSION['message'] .= "Sorry; That file or location can not be found.";
```