#31811 [Opn->Fbk]: is_numeric() works diffirent in different versions
| From: | derick@php.net | Date: | Wed, 02 Feb 2005 12:39:48 +0000 |
| Subject: | #31811 [Opn->Fbk]: is_numeric() works diffirent in different versions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73263@lists.php.net to get a copy of this message | ||
ID: 31811
Updated by: derick@php.net
Reported By: shagren at ua dot fm
-Status: Open
+Status: Feedback
Bug Type: Unknown/Other Function
Operating System: linux
PHP Version: 4.3.10
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-02-02 13:31:02] shagren at ua dot fm
Description:
------------
In old versions(i try 4.3.2 cgi) and 5.0 is_numeric("-.12") return "1",
but in 4.3.10(apache/mod_php) result are false(bool).
Reproduce code:
---------------
<?
echo is_numeric("-.12");
?>
Expected result:
----------------
1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31811&edit=1