#35526 [Opn->Csd]: Behavior of ctype_* functions in PHP 5.1 is inconsistent with documentation.

From: Date: Tue, 06 Dec 2005 15:44:09 +0000
Subject: #35526 [Opn->Csd]: 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-969371184@lists.php.net to get a copy of this message
ID: 35526 Updated by: vrana@php.net Reported By: scottmattocks@php.net -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: N/A PHP Version: Irrelevant New Comment: 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. "When called with an empty string the result will always be TRUE in PHP < 5.1 and FALSE since 5.1." in ref.ctype Previous Comments: ------------------------------------------------------------------------ [2005-12-02 21:59:50] scottmattocks@php.net 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. ------------------------------------------------------------------------ [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

« previous php.doc (#969371184) next »