Doc #63514 [NEW]: Incorrect regex pattern in ctype_alnum()
| From: | AN47HDTEMVQLKX3 dot NJKM2YX7YWVLP2 at gmail dot com | Date: | Wed, 14 Nov 2012 12:34:01 +0000 |
| Subject: | Doc #63514 [NEW]: Incorrect regex pattern in ctype_alnum() | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-9122@lists.php.net to get a copy of this message | ||
From: AN47HDTEMVQLKX3 dot NJKM2YX7YWVLP2 at gmail dot com
Operating system: all
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Incorrect regex pattern in ctype_alnum()
Description:
------------
---
From manual page:
http://www.php.net/function.ctype-alnum#refsect1-function.ctype-
alnum-description
---
ctype_alnum() regex must be [a-zA-Z0-9] instead of [A-Za-z]
Consider to change description line to:
"Checks if all of the characters in the provided string, text, are
alphanumeric.
In the standard C locale letters are just [a-zA-Z0-9]."
Expected result:
----------------
[a-zA-Z0-9]
Actual result:
--------------
[A-Za-z]
--
Edit bug report at https://bugs.php.net/bug.php?id=63514&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63514&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63514&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63514&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63514&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63514&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63514&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63514&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63514&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63514&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63514&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63514&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63514&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63514&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63514&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63514&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63514&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63514&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63514&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63514&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63514&r=mysqlcfg