[php-src] Issue #13094: range(9.9, '0') causes segmentation fault

From: Date: Mon, 08 Jan 2024 22:50:22 +0000
Subject: [php-src] Issue #13094: range(9.9, '0') causes segmentation fault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246195@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/13094 Author: KidFlo ### Description Hi, The following code: ```php <?php var_dump(range(9.9, '0')); ``` Resulted in a SEGFAULT. But I expected (something like) this output instead: ``` array(10) { [0]=> float(9.9) [1]=> float(8.9) [2]=> float(7.9) [3]=> float(6.9) [4]=> float(5.9) [5]=> float(4.9) [6]=> float(3.9000000000000004) [7]=> float(2.9000000000000004) [8]=> float(1.9000000000000004) [9]=> float(0.9000000000000004) } ``` This might not be specific to Windows, since I was also able to reproduce it here : https://3v4l.org/qc6TF. Anyway if you need me to dump more information, just ask (I may not respond immediately). ### PHP Version PHP 8.3.1 ### Operating System Windows 11

« previous php.bugs (#246195) next »