|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2005-04-10 20:50 UTC] sniper@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 06:00:01 2025 UTC | 
Description: ------------ sscanf() not correctly works with language distinct from English language. For example in Russian language. Reproduce code: --------------- From the documentation in Russian <?php // ???????? ???????? ????? 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