|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34724 Unexpected output
Submitted: 2005-10-04 08:22 UTC Modified: 2005-10-04 09:11 UTC
From: tv at net4you dot bg Assigned:
Status: Not a bug Package: Strings related
PHP Version: 5.1.0RC1 OS: Windows XP/Apache 2.0.54
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: tv at net4you dot bg
New email:
PHP Version: OS:


 [2005-10-04 08:22 UTC] tv at net4you dot bg
i have problem with converting cyrillic string to lower. Sorry you need to set page encoding to Windows-1251 to see the strings. Here is a screenshot if you can`t see the screen:

Reproduce code:
	//The string in uc;
	$string = '??????????????????????????????';
	print "Actual uc string: $string<br>";
	//Convert the string to lower
	print "Result: ".(strtolower($string))."<br>";
	//Should produce "??????????????????????????????"
	//Actual output "??????????????????????????????"
	print  'Expected: ??????????????????????????????';

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-04 08:28 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-10-04 08:44 UTC] tv at net4you dot bg
Using the latest snapshot (PHP/5.1.0RC2-dev Server) did not solve my problem. The result remain unchanged.
 [2005-10-04 09:11 UTC]
This is not a bug in PHP as we use the underlying OS functions to lower case strings. If Windows doesn't support it, we can't do anything about it. Perhaps you can try to set the locale with the setlocale() function first, but I don't give you much chance here.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Jun 11 01:03:38 2023 UTC