Bug #81150 [Opn->Ver]: Deprecated non-integer-compatible float conversions missing from UPGRADING
| From: | requinix@php.net | Date: | Thu, 17 Jun 2021 05:06:10 +0000 |
| Subject: | Bug #81150 [Opn->Ver]: Deprecated non-integer-compatible float conversions missing from UPGRADING | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-234442@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81150&edit=1
ID: 81150
Updated by: requinix@php.net
Reported by: call dot user dot func at gmail dot com
-Summary: Deprecation: Implicit conversion from float to int
with array keys
+Summary: Deprecated non-integer-compatible float conversions
missing from UPGRADING
-Status: Open
+Status: Verified
Type: Bug
Package: *General Issues
Operating System: Windows 10
PHP Version: 8.1.0alpha1
Block user comment: N
Private report: N
New Comment:
See https://wiki.php.net/rfc/implicit-float-int-deprecate
Previous Comments:
------------------------------------------------------------------------
[2021-06-17 04:45:12] call dot user dot func at gmail dot com
Description:
------------
Hi. The following code produces a deprecation warning in 8.1 alpha.
Is it used to be like this or is it a bug?
I can't find such information in the deprecation information of https://github.com/php/php-src/blob/php-8.1.0alpha1/UPGRADING
Test script:
---------------
$arr = [];
$cellValue = 159.6;
var_dump(isset($arr[$cellValue]));
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81150&edit=1