Closed
Description
Description
Hi,
The following code:
<?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