Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78183 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2335 invoked from network); 21 Oct 2014 09:08:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Oct 2014 09:08:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.214.179 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.214.179 mail-ob0-f179.google.com Received: from [209.85.214.179] ([209.85.214.179:65133] helo=mail-ob0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/00-02077-D8226445 for ; Tue, 21 Oct 2014 05:08:31 -0400 Received: by mail-ob0-f179.google.com with SMTP id wp4so636150obc.10 for ; Tue, 21 Oct 2014 02:08:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Al9drtUJ26u1gmT1U8QniGi6ng4O6bCyterhDKd4b80=; b=EeAiqbnsj6lTetOrMdDUblH2pNuJzn3RAlQrJvDbNib3vnDpVcQsUecj9TcwccBil2 i9tJWt2TfPP/Yf8ZApfcHL+aHdl5penQQ6P0ykCSKkVnpmI/+wd8S5pXkxihByXO+CfZ vr5K9GE0YsKF+JQ16j/0S4FH9DkqD2ptiKVk4Srol6PNeqmEacLJB06bIQS3s71To4gL h/+duPSCHrBxq/r7Vzlv+x6lixL9+0hYqRJwG2h8kBRhM2AFX05S8+4lODdmPn+Wb7Op 0EoaPLZ5rIqkfVtpQsq54gvrl/Be3FDm6NAqk8dAZfOVCCo1wZfOXvzeJWSS6+yM22xr tqMQ== X-Gm-Message-State: ALoCoQnJ+0rFFVXLd0H77hnmKd18xuxnS5Ir3gYrxso60Kgm5/qp8q648cFNWfaeonUOJNBGaL8ddb3kA1Tm5vibCdCrkRvPACRs3rY2OZszSZyvMeDmsOacdpZ6r+zisNgrhkzgd9fGpI8H3p0pMUJrTTDLM6YmLw== MIME-Version: 1.0 X-Received: by 10.182.225.232 with SMTP id rn8mr28519188obc.23.1413882084184; Tue, 21 Oct 2014 02:01:24 -0700 (PDT) Received: by 10.60.70.41 with HTTP; Tue, 21 Oct 2014 02:01:23 -0700 (PDT) In-Reply-To: <1413875212.2624.3.camel@localhost.localdomain> References: <1413875212.2624.3.camel@localhost.localdomain> Date: Tue, 21 Oct 2014 13:01:23 +0400 Message-ID: To: Joe Watkins Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11c2d0a461eeaf0505eb1357 Subject: Re: [PHP-DEV] [RFC] UString From: dmitry@zend.com (Dmitry Stogov) --001a11c2d0a461eeaf0505eb1357 Content-Type: text/plain; charset=UTF-8 Hi Joe, As an extension it looks fine. I assume, you don't propose to use UString objects in engine and other extensions. Unfortunately, it's yet another incomplete solution. It won't allow Unicode strings as array keys; concatenation using "." (probably may be done), no auto-conversion from/to script/output encoding, no auto-conversion of strings coming from database extensions, etc The "right" approach, would be extending zend_string with "encoding" and then adopting near all functions working with zend_string to take "encoding" into account. But, of course, this is going to lead to much more complicated solution (with some slowdown). If we don't care about complete solution, UString proposal may make sense at lest as a faster replacement of ext/mbstring. Thanks. Dmitry. On Tue, Oct 21, 2014 at 11:06 AM, Joe Watkins wrote: > Morning internalz, > > https://wiki.php.net/rfc/ustring > > This is the result of work done by a few of us, we won't be > opening any > vote in a fortnight. We have a long time before 7, there is no rush > whatever. > > Now seems like a good time to start the conversation so we can > hash out > the details, or get on with other things ;) > > Cheers > Joe > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11c2d0a461eeaf0505eb1357--