#35526 [Opn]: Behavior of ctype_* functions in PHP 5.1 is inconsistent with documentation.
| From: | scottmattocks@php.net | Date: | Fri, 02 Dec 2005 20:59:52 +0000 |
| Subject: | #35526 [Opn]: Behavior of ctype_* functions in PHP 5.1 is inconsistent with documentation. | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969371140@lists.php.net to get a copy of this message | ||
ID: 35526
User updated by: scottmattocks@php.net
Reported By: scottmattocks@php.net
Status: Open
Bug Type: Documentation problem
Operating System: N/A
PHP Version: Irrelevant
New Comment:
Patch updated on 2005-12-02 15:55 EST (GMT -500).
Updated patch includes changelog for reference.xml.
As recommended by Daniel Convissor, "Seems like an explanation of the
pre-5.1 and post-5.1 return values would be most helpful in the
returnvalues refsect." This is not included in the patch. If there is a
sample of what this type of change might look like, please point me to
it and I will add it to the patch file.
Previous Comments:
------------------------------------------------------------------------
[2005-12-02 20:36:18] scottmattocks@php.net
Description:
------------
The ctype_* functions were updated in 5.1 to return false when passed
an empty string. The documentation does not reflect this change.
A patch for the docs can be found at:
http://crisscott.com/tmp/ctype_5_1.patch
Reproduce code:
---------------
var_dump(ctype_digit(''));
Expected result:
----------------
According to documentation:
bool(true)
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35526&edit=1