Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54512 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26776 invoked from network); 11 Aug 2011 21:56:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2011 21:56:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:44881] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/21-14792-610544E4 for ; Thu, 11 Aug 2011 17:56:38 -0400 Received: by vxh24 with SMTP id 24so2250508vxh.29 for ; Thu, 11 Aug 2011 14:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=708EXX+7WQBD663ZidQoRLDZDm4N8h73xjQQvQGWEzE=; b=ZCbKvMOwt5ABceyuM0vj6YODm53oK70/1n7RVnI1GD7lBpd77ufC3zuFEkJv04xYa1 HQFDzhU9NjneZsk4U2XRVqcyo15p7fj7eUdop/G6IULLmX4Bbv6RcGmeBMmtU/GIg/Dv vMHClA69RIgi/VlBwXnP3RZrAvDR/0RAzUmR0= MIME-Version: 1.0 Received: by 10.220.194.130 with SMTP id dy2mr39903vcb.147.1313099795122; Thu, 11 Aug 2011 14:56:35 -0700 (PDT) Sender: kalle.php@gmail.com Received: by 10.220.107.195 with HTTP; Thu, 11 Aug 2011 14:56:35 -0700 (PDT) In-Reply-To: <4E443778.2050603@googlemail.com> References: <4E443778.2050603@googlemail.com> Date: Thu, 11 Aug 2011 23:56:35 +0200 X-Google-Sender-Auth: yl4z3fceqahK0qEI0ahXKpAXEjE Message-ID: To: sebastian.krebs.berlin@googlemail.com Cc: PHP internals list Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Multibyte and declate (PHP5.4) From: kalle@php.net (Kalle Sommer Nielsen) Hi Sebastian 2011/8/11 Sebastian Krebs : > Hi, > > With PHP5.4 I get this warning > > | Warning: declare(encoding=...) ignored because Zend multibyte feature > | is turned off by settings in [..] > > because of > > | declare(encoding = 'UTF-8'); > > An except from the manual [1] > In PHP 5.4, the compile time switch was removed and made into an ini directive, which lives under the name of zend.multibyte = [On|Off]. For the question about declare's availability: No Zend Multibyte support does not make the engine ignore the construct totally, as we also got another statement; ticks that can be used in declare aswell. For the question about why its not enabled by default? Performance, you don't want to enable multibyte support when most of your code lives in a single byte char format anyway, some calls are most costly because you can no longer jump just one byte and have to validate what kind of character sequence we're at now. -- regards, Kalle Sommer Nielsen kalle@php.net