Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91296 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10659 invoked from network); 18 Feb 2016 22:54:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2016 22:54:10 -0000 Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 157.56.110.145 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 157.56.110.145 mail-bn1on0145.outbound.protection.outlook.com Received: from [157.56.110.145] ([157.56.110.145:3104] helo=na01-bn1-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/93-27267-F8B46C65 for ; Thu, 18 Feb 2016 17:54:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=7kNYAtVduvkGX64lDTqtZ1SMtMuph+sxrp5dZAqcvgM=; b=Mh8LLkZfzfTcB4Mu87JorR4ikJAQQGpMA73pEoItn6ghQbcHhas/9ZFl5D0eZ7JOyvw82rixxQx7tfnGtjhC80g2GlQ8blco3runmavTF1TqiMlOhvw7K+sXPx0ulje7I6bc0EN13h9B4jFdOpJ6XK414XpVHWpMf33xtmKlkfw= Received: from BY2PR02MB298.namprd02.prod.outlook.com (10.141.140.21) by BY2PR02MB300.namprd02.prod.outlook.com (10.141.140.26) with Microsoft SMTP Server (TLS) id 15.1.409.15; Thu, 18 Feb 2016 22:54:04 +0000 Received: from BY2PR02MB298.namprd02.prod.outlook.com ([10.141.140.21]) by BY2PR02MB298.namprd02.prod.outlook.com ([10.141.140.21]) with mapi id 15.01.0409.017; Thu, 18 Feb 2016 22:54:04 +0000 To: Andrea Faulds CC: "internals@lists.php.net" Thread-Topic: [PHP-DEV] Re: [RFC] Deprecations for PHP 7.1 Thread-Index: AQHRaoa7vYwtElySdku3mDia5FGqBp8yaXmH Date: Thu, 18 Feb 2016 22:54:03 +0000 Message-ID: <3241F271-BDEC-4621-8697-D0352D6B92FE@zend.com> References: ,<24.F3.62769.A4226C65@pb1.pair.com> In-Reply-To: <24.F3.62769.A4226C65@pb1.pair.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: ajf.me; dkim=none (message not signed) header.d=none;ajf.me; dmarc=none action=none header.from=zend.com; x-originating-ip: [84.228.43.66] x-microsoft-exchange-diagnostics: 1;BY2PR02MB300;5:VJM2CVDdPaB4Proh5bHz/tJeUwf9RQmZzXGWDrs6OHr2V+D7pbRt23SsrdBKwBFeSkhvvw//+qXdBJdLDjqiBYyeKfVhhVj4oUVWdAD/iCCz5kl84AWSZqdUbH9BtGkxNgamzvleeqWQmrElaizOCg==;24:1rH5nJtCu4a8Mk3QNiU5fO+5MPKAHj9xgwJMTT7VpmQfgoq1OHF9QzE7N06OZsVDAjOnSkG9eT1sr9ZW26aAzSby/0MDAYA6/aahN3v6KmI= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR02MB300; x-ms-office365-filtering-correlation-id: e6ed1916-2247-4059-c5a4-08d338b6667a x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046);SRVR:BY2PR02MB300;BCL:0;PCL:0;RULEID:;SRVR:BY2PR02MB300; x-forefront-prvs: 085634EFF4 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(10400500002)(82746002)(5002640100001)(122556002)(106116001)(83716003)(87936001)(2950100001)(2900100001)(92566002)(77096005)(5004730100002)(40100003)(50986999)(86362001)(54356999)(76176999)(2906002)(4326007)(586003)(6116002)(3846002)(66066001)(11100500001)(110136002)(19580395003)(102836003)(1220700001)(1096002)(5008740100001)(33656002)(3280700002)(36756003)(3660700001)(19580405001)(189998001)(99286002)(5001960100002);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR02MB300;H:BY2PR02MB298.namprd02.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Feb 2016 22:54:04.0147 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB300 Subject: Re: [PHP-DEV] Re: [RFC] Deprecations for PHP 7.1 From: zeev@zend.com (Zeev Suraski) > On 18 =E1=F4=E1=F8=D7 2016, at 21:58, Andrea Faulds wrote: >=20 >=20 > Hmm. Well, if we're doing mass deprecations, maybe we should finally get = rid of hebrev() and hebrevc()? It feels out-of-place to have a poorly-docum= ented standard library function specifically for converting between two dif= ferent legacy 8-bit encodings used for Hebrew, especially when one of them = is just the other with nl2br() included! Users who need to convert between = different variants of ISO-8859-8 can use iconv() instead, or perhaps use a = userland polyfill of hebrev/c(). I'm not aware that you can use iconv to convert visual to logical Hebrew or= vice versa. Not saying you can't, just that I'm not aware it does - I don= 't think it support visual encodings at all. Do you know how to convert be= tween them using iconv? If you do, I'm fine reimplementing these functions= using iconv, again, if we can eliminate the pointless upgrade hassle. The= other alternative of a userland version isn't that simple to write, would = be slower, and most importantly buys us nothing. I'm guessing that hebrevc() predates nl2br() (could be wrong), but regardle= ss, I wouldn't touch it as there's zero gain to be had. Last - we're not or at least shouldn't be doing mass deprecations. There s= hould be an extremely strong reason to break perfectly good code. Zeev=