Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50419 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26461 invoked from network); 23 Nov 2010 05:23:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Nov 2010 05:23:11 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.185 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.25.124.185 il-mr1.zend.com Received: from [212.25.124.185] ([212.25.124.185:34486] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 04/1A-59959-BBF4BEC4 for ; Tue, 23 Nov 2010 00:23:09 -0500 Received: from il-gw1.zend.com (unknown [10.1.1.22]) by il-mr1.zend.com (Postfix) with ESMTP id BA454504C5; Tue, 23 Nov 2010 07:17:15 +0200 (IST) Received: from ws.home (10.1.10.20) by il-ex2.zend.net (10.1.1.22) with Microsoft SMTP Server id 14.0.689.0; Tue, 23 Nov 2010 07:22:54 +0200 Message-ID: <4CEB4FB7.1020200@zend.com> Date: Tue, 23 Nov 2010 08:23:03 +0300 User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: Christopher Jones CC: Derick Rethans , , Kalle Sommer Nielsen References: <4CE537B0.1030607@zend.com> <4CE56978.9050102@oracle.com> <4CE686BC.4080307@zend.com> <4CEAECC2.6060403@oracle.com> In-Reply-To: <4CEAECC2.6060403@oracle.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] --enable-zend-multibyte From: dmitry@zend.com (Dmitry Stogov) Hi Christopher, Right now, I'm working on patch to completely remove compile-time "--enable-zend-multibyte" and replacing it with run-time "zend.multibyte". I think the ZEND_MULTIBYTE constant will became useless. I hope I'll post the patch later today. Thanks. Dmitry. Christopher Jones wrote: > > > On 11/19/2010 06:16 AM, Dmitry Stogov wrote: >> >> >> Derick Rethans wrote: >>> On Thu, 18 Nov 2010, Christopher Jones wrote: >>> >>>> On 11/18/2010 06:26 AM, Dmitry Stogov wrote: >>>>> The proposed patch allows compiling PHP with --enable-zend-multibyte >>>>> and then enable or disable multibyte support at run-time using >>>>> zend.multibyte=0/1 in php.ini. As result the single binary will be >>>>> able to support multibyte encodings and run without zend-multibyte >>>>> overhead dependent on configuration. >>>>> >>>>> The patch doesn't affect PHP compiled without --enable-zend-multibyte. >>>>> >>>>> I'm going to commit it into trunk before alpha. >>>>> Any objections? >>>> If the overhead of zend.multibyte=0 is negligable, then why not remove >>>> remove the configure option altogether? This would reduce the >>>> complexity of the implementation and simplify building & maintenance. >>>> Why have two interdependent ways to get the same outcome if one way >>>> will do? >>> >>> Because it has a dependency on mbstring. >> >> Actually, it doesn't have compile-time dependencies, so it's probably >> make sense to remove --enable-zend-multibyte completely. >> >> Thanks. Dmitry. >> >>> Derick >>> > > Another ease-of-use simplification prior to releasing 5.3.4 is to roll > back the addition of ZEND_MULTIBYTE > http://svn.php.net/viewvc?view=revision&revision=305266 > > In future an ini_get() for zend.multibyte would be the solution for > http://bugs.php.net/bug.php?id=52348 > > Chris >