Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106044 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 52824 invoked from network); 23 Jun 2019 18:33:22 -0000 Received: from unknown (HELO mail-wm1-f52.google.com) (209.85.128.52) by pb1.pair.com with SMTP; 23 Jun 2019 18:33:22 -0000 Received: by mail-wm1-f52.google.com with SMTP id w9so12476526wmd.1 for ; Sun, 23 Jun 2019 08:49:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:cc:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=TH4hGdQIPuk1sW9nlW86q+y+ZalaaeXL44TdI9eJ6UQ=; b=W9MZcza0rO1fUED6vc6jou8csKA0FcjXl2k0aINAZChbbA8hPedp80DNyzRu2X9Xc1 C0LaNnrr5LjG/2Z1v95tihZCIRYr2ax+5B2DAP9FtUBfI3luZBxmmVTMlgj3uDnGrHah PBs/ILrTNJERXWg52HntJffp/eQ2pI9iiompO/eKQAlq/bTaa/1ErEA6ebFQCN2n1Wvn H9+12ocNTjb72Jr4ddNXgthMzavjGRRywHjr7EIqX7n2ktp/q4Y8n47Ha+3QvbJlMlwA zfrrktw+OCPgp7NhzW3pPNDVZjNim4jSBtcN5QmZ4Fmr/qV+HoGxyUTbVfIsCZsS7pZh fUZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=TH4hGdQIPuk1sW9nlW86q+y+ZalaaeXL44TdI9eJ6UQ=; b=RuqXTy59NrsodTYHRreMZfB1UZnhqKOz+3uFu/kZsAlZslwzfPN5TikExTaaGxrkFZ s6c+dtpfdq6uo7ng0nDgbl9bOyW/nKRkbRme1F+da9jAMbGTQ3voeX5ouw7EJzh9a9VU nKTpADW7uXAw6dd9cu1Kt/Sal1cPAyAdwCyNtb0/5an6bNoHS809efbYZiE4ju9JZjZp mzT18EXGLQAMtaNEmWTtPyhtdT2yaGdtlykPzmOjhIDeqEbD+RQZJSX4IDNKo/mhPI2y JJBSrut3Exlz+iELKFS/JRJi+kWUX6e9R0QGC96xOOmE/1FRUNL0yiRGSLx8BdUvYm9I ciTA== X-Gm-Message-State: APjAAAWs76YMA1dZnOIMrTRGMFfimVdtqsW9DKlDH+fzt7gRFj+sItam azJHJ+W1nIk5GKfkaCEcLkkpJ332 X-Google-Smtp-Source: APXvYqzQOs8B6cu7xVzon3GJDmHxNoc1Amb7b7e0atjQkN97JEWsgWEFUjYmuv9H0eOklqORwfcSMA== X-Received: by 2002:a1c:7d02:: with SMTP id y2mr12294941wmc.15.1561304942392; Sun, 23 Jun 2019 08:49:02 -0700 (PDT) Received: from [192.168.0.16] (cpc84253-brig22-2-0-cust114.3-3.cable.virginm.net. [81.108.141.115]) by smtp.googlemail.com with ESMTPSA id w23sm8286884wmi.45.2019.06.23.08.49.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Jun 2019 08:49:01 -0700 (PDT) Cc: internals@lists.php.net References: <8442f1fa5544b2ca03e7cebbc64e8e5c@wkhudgins.info> <683c5da474e13283030cac3d0c0ec080@wkhudgins.info> <2c37999d1e5372ae6ab48bfce5420796@wkhudgins.info> <2CF672F8-12F5-4D37-8B8C-591A6E695220@benramsey.com> <3E2100B1-7BF7-4C9F-AA77-D82924A2D5FC@gmail.com> <8CFCFE96-E2B7-456B-85A3-8737754C59D6@benramsey.com> Message-ID: <62c2a555-6e5e-cb64-e151-93e6f4268e80@gmail.com> Date: Sun, 23 Jun 2019 16:48:56 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <8CFCFE96-E2B7-456B-85A3-8737754C59D6@benramsey.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB Subject: Re: [PHP-DEV] [RFC] Desire to move RFC add_str_begin_and_end_functions to a vote From: rowan.collins@gmail.com (Rowan Collins) On 23/06/2019 16:29, Ben Ramsey wrote: > According to Google, "İyi akşamlar” is the Turkish phrase for “Good evening” (Turkish speakers, please correct me, if this wrong). However, using the existing mb_* functions, I can’t get mb_stripos() to return 0 when trying to see if the string “İYI AKŞAMLAR” begins with “i̇yi.” Probably mb_string not using the right case-folding routines; as mentioned in another thread, ext/mbstring wasn't written for Unicode, but for older multibyte encodings, particularly those used for Japanese text. grapheme_stripos (from ext/intl) apparently gets it right as of PHP 7.3: https://3v4l.org/0431j A much simpler example, though, is using just the second word of that string: the accented "s" confuses plain stripos but not mb_stripos. Regards, -- Rowan Collins [IMSoP]