Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106182 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 93957 invoked from network); 8 Jul 2019 21:04:39 -0000 Received: from unknown (HELO mail-lj1-f181.google.com) (209.85.208.181) by pb1.pair.com with SMTP; 8 Jul 2019 21:04:39 -0000 Received: by mail-lj1-f181.google.com with SMTP id v24so16911166ljg.13 for ; Mon, 08 Jul 2019 11:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1BjEOZa+JhFldnuttfXyNlUu1/FCnSAMToq5gVNgozg=; b=J6hdLonmcclBIxCQL+RKEM39+2S2m+5+ixd8DeBfgAD3g3ihRcleSDVwhdxHB6eM5e n+twHIOrjqU555W3pxvS7uAwjTDPLUMikX/AEfAzRpEgLOYjJRGgRshmEIX2uxeRhJvk Eh8bGwYFbOw4ZdZ14kXP/tY+dwBiPk+OHbSrLm+Ulw1d7SxijfT+VZGDrS2aRMLB+pQ2 5soAOq/HTQJhfk4sgTx/gyD08h46bHq9V1L7xyj6xBFKSM37wcRAd9kPvW60QqAHb9Sh dk6L7PJiMGAWEcudsArfD6mA2hwEjH+64DZKmErOsTmk3lWEyUfuTAm1MbE1+FZr73ZM 17/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1BjEOZa+JhFldnuttfXyNlUu1/FCnSAMToq5gVNgozg=; b=L0B+xrNI+3US1yKhDKfhtkbG7DN8Xb9UmhEgi5snkmLUFeradZFpFqake2XHJ6aXfJ M8fNmcn38uIde5tXE8PWW+YV6K6rkgh7ozb9oKu80XPg6NQ//qA02CyHigxcObAGPrTL iwlFV6jhptLUHVDkkBkKPUw902zn1sIlbCRjplCDEJeunmrh3NAKIpTrK/HxepQU+H4j nFXOy/sE4rbK3gpqaqySlw0aH7patnXaJJ1ZpGx1ZpsNdVH2ZCtmQq/Q97WeFG8MsQyY UEqtVRe5/JKc5ColDYknRjOzRbpz840D07XISmPI4nCydH50/jIp88ilAfY8p4iCX0a1 /HOA== X-Gm-Message-State: APjAAAWyegmzObPVxGvsFtRk+XthG0BkFfmAP/s6RofnGMGEq7j5uz05 yzOyLT4UJ6TmVXWnH2ZzZfkg3Epq1BPP++49iis= X-Google-Smtp-Source: APXvYqxYM96sIfgOgzn817UeNMjpi1uuj1I2svXiqbLNus2evKTHhVEM1SXtsnPbF9cj1NEYcxnXDFt0aratKJfkR2E= X-Received: by 2002:a2e:65ca:: with SMTP id e71mr8101189ljf.61.1562610246113; Mon, 08 Jul 2019 11:24:06 -0700 (PDT) MIME-Version: 1.0 References: <09a8bba3-d17a-a8e5-f9b7-cc3d65f1e66c@gmail.com> In-Reply-To: Date: Mon, 8 Jul 2019 20:23:49 +0200 Message-ID: To: Zeev Suraski Cc: Stanislav Malyshev , Kalle Sommer Nielsen , Internals Content-Type: multipart/alternative; boundary="000000000000a45cb6058d2f8c72" Subject: Re: [PHP-DEV] [RFC] Deprecations for 7.4 - specifics From: nikita.ppv@gmail.com (Nikita Popov) --000000000000a45cb6058d2f8c72 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jul 8, 2019 at 6:56 PM Zeev Suraski wrote: > > > On Mon, Jul 8, 2019 at 5:37 PM Nikita Popov wrote: > >> >> I'm certainly not a domain expert in RTL languages. I'd be happy to drop >> hebrev() from this RFC if someone can bring forward a good technical >> argument as to why these functions are still necessary and where they wo= uld >> be used. >> > > I do insist you have it backwards - you need a good technical argument as > to why these functions should be removed - i.e., what negative value do > they bring to the table that would be sorted out by their elimitation > (which could even be "pushing people towards using something that I > consider better", but even that is not available). This is key, and went > completely ignored. > > That said: > > >> However, and given your comment here I may have just missed this between >> other mail, I have not actually seen any technical argument on this topi= c. >> The only thing I found was a namedrop of "IBM i" without any explanation= of >> the significance this has for Hebrew text or the hebrev() function >> > > IBM i is not a namedrop at all. Basically, any platform that has no > built-in RTL support (IBM i being one of them, there are many more) would > benefit from hebrev(). As a matter of fact, I just recalled that this is > even useful under Windows (I used it myself a few months ago and forgot > about it) - as the Windows shell doesn't render logical Hebrew either. F= or > instance, if you have the following files in C:\somedir: > > C:\somedir\=D7=A0=D7=99=D7=A7=D7=99=D7=98=D7=94 > C:\somedir\=D7=A7=D7=90=D7=9C > > (that's Nikita and Kalle) > > The following script: > ---- > $d =3D opendir("c:\\somedir"); > while ($f =3D readdir($d)) { > print "$f\n"; > } > --- > > Would generate the following output: > https://www.dropbox.com/s/tjs8jwypmy7nvay/Hebrew%20Logical.PNG?dl=3D0 > > When fixed with hebrev(): > ---- > $d =3D opendir("c:\\somedir"); > while ($f =3D readdir($d)) { > print hebrev($f)."\n"; > } > --- > > It will display the correct output: > https://www.dropbox.com/s/wss5fswd9gqj5vk/Hebrew%20Visual.PNG?dl=3D0 > > I'm *almost* sure that you'd get the same results on Linux. > > Simply put - hebrev() is super useful for CLI apps. > > The fact it's nowadays thankfully uncommon for HTML to be based on visual > encodings, doesn't mean visual representations have disappeared. They're > still there in all sorts of legacy situations - including legacy scenario= s > in modern OSs (the above is from Windows 10 1903). > Thanks Zeev, this is exactly the kind of feedback I was looking for. As you make a case for a possible legitimate use-case, I'm dropping the hebrev() deprecation from this RFC, so that the proposal only covers hebrevc() now. (As a side note, it would be great if this kind of information also made it into the documentation for hebrev().) Nikita --000000000000a45cb6058d2f8c72--