[php-src] Issue #7895: Uncaught TypeError: Unsupported operand types: string * string in

From: Date: Thu, 06 Jan 2022 12:19:48 +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-238798@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7895 Author: tolgahanacar ### Description The following code: ```php <?php $value1 = $_POST['value1'] // var_dump: string $value2 = $_POST['value2'] // var_dump: string or int ``` Resulted in this output: ``` Uncaught TypeError: Unsupported operand types: string * string in // Converting with intval doesn't work, it returns values ​​as 0. ``` But I expected this output instead: ``` example: 1*3 = 3 ``` ### PHP Version PHP 8.0.1 ### Operating System Microsoft Windows 10 Home [10.0.19043]

« previous php.bugs (#238798) next »