php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73464 Casting string "INF" to float broken
Submitted: 2016-11-05 12:40 UTC Modified: 2016-11-05 17:07 UTC
From: sjon at hortensius dot net Assigned: cmb (profile)
Status: Not a bug Package: Strings related
PHP Version: 7.1.0RC5 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sjon at hortensius dot net
New email:
PHP Version: OS:

 

 [2016-11-05 12:40 UTC] sjon at hortensius dot net
Description:
------------
RC5 breaks casting of string "INF" to float, see https://3v4l.org/04YG9

Test script:
---------------
var_dump((float)"INF");

Expected result:
----------------
float(INF)


Actual result:
--------------
float(0)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-05 17:07 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2016-11-05 17:07 UTC] cmb@php.net
That is intended behavior caused by fixing bug #73329.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 04 08:01:29 2024 UTC