Bug #67719 [Com]: is_numeric treats leading and trailing spaces differently
| From: | progr-d at yandex dot ru | Date: | Tue, 12 Feb 2019 06:48:03 +0000 |
| Subject: | Bug #67719 [Com]: is_numeric treats leading and trailing spaces differently | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-219516@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67719&edit=1
ID: 67719
Comment by: progr-d at yandex dot ru
Reported by: bichinhoverde at spwinternet dot com dot br
Summary: is_numeric treats leading and trailing spaces
differently
Status: Open
Type: Bug
Package: *Math Functions
Operating System: Linux and Windows
PHP Version: 5.5.15
Block user comment: N
Private report: N
New Comment:
This bug not fixed in php7.3.1
Previous Comments:
------------------------------------------------------------------------
[2014-07-30 15:22:36] bichinhoverde at spwinternet dot com dot br
Description:
------------
is_numeric(" 1") is true
is_numeric("1 ") is false
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67719&edit=1