Bug #73329 [Opn->Ver]: (Float)"Nano" == NAN [Should return me 0]

From: Date: Mon, 17 Oct 2016 11:27:49 +0000
Subject: Bug #73329 [Opn->Ver]: (Float)"Nano" == NAN [Should return me 0]
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204852@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73329&edit=1 ID: 73329 Updated by: requinix@php.net Reported by: nikcomestotalk at gmail dot com Summary: (Float)"Nano" == NAN [Should return me 0] -Status: Open +Status: Verified Type: Bug -Package: Variables related +Package: Scripting Engine problem Operating System: Any PHP Version: 7.0.12 Block user comment: N Private report: N New Comment: https://3v4l.org/FPsXI https://github.com/php/php-src/blob/6053987bc27e8dede37f437193a5cad448f99bce/Zend/zend_strtod.c#L2720 It checks for "inf/infinity/nan" but not for a \0 afterwards. Previous Comments: ------------------------------------------------------------------------ [2016-10-17 10:59:22] nikcomestotalk at gmail dot com Description: ------------ (Float)"Nano" == NAN [Should return me 0] (Float)"Information" == NAN [Should return me 0] Expected result: ---------------- Should return me 0 Actual result: -------------- NAN or INF ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73329&edit=1

« previous php.bugs (#204852) next »