php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #36280 Character increment - problems with non-english chars
Submitted: 2006-02-04 05:31 UTC Modified: 2006-02-19 00:10 UTC
From: dekelb at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.4.2 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dekelb at gmail dot com
New email:
PHP Version: OS:

 

 [2006-02-04 05:31 UTC] dekelb at gmail dot com
Description:
------------
I've search for similar bug, but nothing found. If I missed it please ignore this post :)
The manual mentioned the character increment, but there is no reference for English characters only.
When I'm trying character increment on Hebrew chars (and I guess with any non-english chars it will be the same) ? the output of the script is just the same as the original char:
<?
$a = "?"
echo ++$a;
?>
The expected result is the following char (which is "?"), but the result is the same char. Notice that ++ on "?9" results with 9 changes to 0, but the Hebrew char isn't incremented.
(The encoding I used for this post is windows-1255/iso-8859-8-i).


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-04 12:46 UTC] tony2001@php.net
Yes, characters that are not in a-zA-Z not supported.
Reclassified as docu problem.
 [2006-02-19 00:10 UTC] nlopess@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.


 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=b80fc168c491c1d29d97c81efe273d72c931b06a
Log: fix #36280: only plain ascii characters can be incremented
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 20:00:02 2025 UTC