ID: 35526 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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