php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63514 Incorrect regex pattern in ctype_alnum()
Submitted: 2012-11-14 12:34 UTC Modified: 2012-11-14 14:30 UTC
From: AN47HDTEMVQLKX3 dot NJKM2YX7YWVLP2 at gmail dot com Assigned: krakjoe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: AN47HDTEMVQLKX3 dot NJKM2YX7YWVLP2 at gmail dot com
New email:
PHP Version: OS:

 

 [2012-11-14 12:34 UTC] AN47HDTEMVQLKX3 dot NJKM2YX7YWVLP2 at gmail dot com
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]

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-14 14:29 UTC] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=328354
Log: fix regex pattern for alphanumeric bug #63514
 [2012-11-14 14:30 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2012-11-14 14:30 UTC] krakjoe@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Thanks :)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 04:00:01 2026 UTC