[php-src] Issue #7895: Uncaught TypeError: Unsupported operand types: string * string in
| From: | tolgahanacar | Date: | Thu, 06 Jan 2022 12:42:49 +0000 |
| Subject: | [php-src] Issue #7895: Uncaught TypeError: Unsupported operand types: string * string in | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238804@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7895
Comment Author: tolgahanacar
```php
$foo = 'asdf';
$bar = '3';
echo $foo * $bar;
// PHP: 8.1.0
// Result: Uncaught TypeError: Unsupported operand types: string * string in
// This problem may give output in the values we define, but it may cause problems in
operations pulled with json or direct array operations. I've seen this issue on several forum
pages, but couldn't find any solution.