php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #35873 The documentation for ctype regarding the passing of integer values is confusin
Submitted: 2006-01-03 01:18 UTC Modified: 2006-01-03 17:34 UTC
From: avarab at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: GNU/Linux
Private report: No CVE-ID: None
 [2006-01-03 01:18 UTC] avarab at gmail dot com
Description:
------------
The ctype documentation (http://www.php.net/ctype) states that: "If the number is between -128 (inclusive) and 0 then 256 will be added and the check will be done on that."

First of all (inclusive) shouldn't be in parentheses because they should only contain superfluous information, which isn't the case here, furthermore it's unlclear at first, at least to me, whether "inclusive" applies for the whole range or just the start of it as is the case.

The documentation should be changed to:

"If the number is between -128 and -1 inclusive then 256 will be added and the check will be done on that."

Which is less confusing and doesn't place essential information in parentheses.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-03 17:34 UTC] vrana@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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 20 13:00:01 2025 UTC