[php-src] Issue #11334: It could be a feature

From: Date: Sun, 28 May 2023 18:46:46 +0000
Subject: [php-src] Issue #11334: It could be a feature
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244557@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11334 Author: remco-pc ### Description The following code: ```php <?php $var = (int) $numeric_string ?? 255 ``` Resulted in this output: ``` 0 ``` But I expected this output instead: ``` 255 ``` If i dont cast the $numeric_string it would be 255. I think it does (int) null before ?? And ?? Should be processed first without the cast. ### PHP Version Php 8.2 ### Operating System Debian 11

« previous php.bugs (#244557) next »