|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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 Oct 01 11:01:24 2023 UTC