[php-src] Issue #15744: Wrong result in arithmetic operation if null coalesce operator used without braces

From: Date: Wed, 04 Sep 2024 09:36:03 +0000
Subject: [php-src] Issue #15744: Wrong result in arithmetic operation if null coalesce operator used without braces
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247694@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15744 Author: BazazAdnan ### Description The following code: ```php $a = 2; $b = 1.98; echo $b??0 - $a??0; <?php ``` Resulted in this output: ``` 1.98 ``` But I expected this output instead: ``` -0.02 ``` ### PHP Version any ### Operating System windows 10

« previous php.bugs (#247694) next »