|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
46 - 44 = ?
Subscribe to this entry?

 [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 10:01:24 2023 UTC