php.net |  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.
Password:
Status:
Package:
Bug Type:
Summary:
From: tv at net4you dot bg
New email:
PHP Version: OS:

 

 [2005-10-04 08:22 UTC] tv at net4you dot bg
Description:
------------
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: http://www.net4you.bg/temp/tempimg.jpg

Reproduce code:
---------------
<?php
	//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:
--------------
??????????????????????????????

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-04 08:28 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [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] derick@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC