|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32655 sscanf not correctly works with language distinct from English
Submitted: 2005-04-10 13:27 UTC Modified: 2005-04-10 20:50 UTC
From: dia-lagl at yandex dot ru Assigned:
Status: Not a bug Package: Strings related
PHP Version: 4.3.11 OS: WinXP SP1
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: dia-lagl at yandex dot ru
New email:
PHP Version: OS:


 [2005-04-10 13:27 UTC] dia-lagl at yandex dot ru
sscanf() not correctly works with language distinct from English language. For example in Russian language.

Reproduce code:
From the documentation in Russian
// ???????? ???????? ?????
list($serial) = sscanf("SN/2350001", "SN/%d");
// ? ???? ????????????
$mandate = "?????? 01 2000";
list($month, $day, $year) = sscanf($mandate, "%s %d %d");
echo "???? $serial ??? ??????????: $year-" . $month . "-$day\n";

Expected result:
"???? 2350001 ??? ??????????: 2000-??????-1 "

Actual result:
"???? 2350001 ??? ??????????: -?- " or something another


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-10 20:50 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Jun 05 21:03:37 2023 UTC