php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67719 is_numeric treats leading and trailing spaces differently
Submitted: 2014-07-30 15:22 UTC Modified: 2019-02-12 07:59 UTC
Votes:9
Avg. Score:3.0 ± 1.2
Reproduced:5 of 7 (71.4%)
Same Version:1 (20.0%)
Same OS:2 (40.0%)
From: bichinhoverde at spwinternet dot com dot br Assigned: ajf (profile)
Status: Assigned Package: *Math Functions
PHP Version: 5.5.15 OS: Linux and Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bichinhoverde at spwinternet dot com dot br
New email:
PHP Version: OS:

 

 [2014-07-30 15:22 UTC] bichinhoverde at spwinternet dot com dot br
Description:
------------
is_numeric(" 1") is true
is_numeric("1 ") is false



Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-02-12 06:48 UTC] progr-d at yandex dot ru
This bug not fixed in php7.3.1
 [2019-02-12 07:59 UTC] nikic@php.net
-Assigned To: +Assigned To: ajf
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Mar 25 16:01:26 2019 UTC