note 70391 added to function.ctype-digit
| From: | kitchin at osu1 dot php dot net | Date: | Sat, 14 Oct 2006 14:36:05 +0000 |
| Subject: | note 70391 added to function.ctype-digit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-118524@lists.php.net to get a copy of this message | ||
Confirming Crimson's bug in 4.3.10, Windows and Linux. It affects all the ctype_ functions.
It is caused by this bug handling large numbers,
http://bugs.php.net/bug.php?id=34645
fixed in 4.4.1. I tested Crimson's code in 4.4.4 Windows and it now works.
Also note ctype_ treats small integers as ASCII codes, not strings. So ctype_digit(109) is false,
but ctype_digit('109') is true. Large integers (>255) are treated as strings.
----
Server IP: 64.71.164.2
Probable Submitter: 65.40.218.92
----
Manual Page -- http://www.php.net/manual/en/function.ctype-digit.php
Edit -- https://master.php.net/note/edit/70391
Del: integrated -- https://master.php.net/note/delete/70391/integrated
Del: useless -- https://master.php.net/note/delete/70391/useless
Del: bad code -- https://master.php.net/note/delete/70391/bad+code
Del: spam -- https://master.php.net/note/delete/70391/spam
Del: non-english -- https://master.php.net/note/delete/70391/non-english
Del: in docs -- https://master.php.net/note/delete/70391/in+docs
Del: other reasons-- https://master.php.net/note/delete/70391
Reject -- https://master.php.net/note/reject/70391
Search -- https://master.php.net/manage/user-notes.php