Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56017 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22693 invoked from network); 3 Nov 2011 06:54:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Nov 2011 06:54:04 -0000 Authentication-Results: pb1.pair.com header.from=rui_hirokawa@yahoo.co.jp; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=rui_hirokawa@yahoo.co.jp; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain yahoo.co.jp designates 114.111.99.163 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rui_hirokawa@yahoo.co.jp X-Host-Fingerprint: 114.111.99.163 smtp502.mail.kks.yahoo.co.jp Received: from [114.111.99.163] ([114.111.99.163:47745] helo=smtp502.mail.kks.yahoo.co.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/C0-14104-98A32BE4 for ; Thu, 03 Nov 2011 01:54:03 -0500 Received: (qmail 41015 invoked by alias); 3 Nov 2011 06:53:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1320303236; bh=YdW1xg75KKm+ZvID1XJ1AEW3628nJKwvq3zueK7/Lf0=; h=Received:X-Apparently-From:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:X-Enigmail-Version:Content-Type:Content-Transfer-Encoding; b=TeARgYM9zrRk+5PnOS4c6BFgRw24dzlUZvT0h+yT69e0UDQxpDkkVpe8rQaENRhe+6HIbmw5n6iTRD46dtrbft4GJtUvU1TQjIuWYc5aPGE7jNjurR/oGW5otuZ8XnZXe6/D3tSm8znttHv/ETe7pxDCuAQD9pV+Klij1DSN10Y= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Received:X-Apparently-From:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:X-Enigmail-Version:Content-Type:Content-Transfer-Encoding; b=NixkReOJpkgFeTV15B0MMC8wtuJ+GOMAW1UJ79S7hkSaadRbP6UNQpOyBM3oLaEqnnIBG3apkZc+lyxx5pa+1TWMxD7d7WiZ/X6ef7pX1hNgL/h2+iSV6M90/w/Ec/ywvJriIkI4gDTGfYXciT1OYDQwOpNPyj7fuOKA75kAcMY= ; Received: from unknown (HELO flight.example.com) (119.242.99.10 with plain) by smtp502.mail.kks.yahoo.co.jp with SMTP; 3 Nov 2011 06:53:56 -0000 X-Apparently-From: Message-ID: <4EB23A84.5070003@yahoo.co.jp> Date: Thu, 03 Nov 2011 15:53:56 +0900 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: X-Enigmail-Version: 1.4a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Zend Multibyte support From: rui_hirokawa@yahoo.co.jp (Rui Hirokawa) Hi, It is almost same for me. What kind of configure option you are using ? For me (Ubuntu 11.10), if I made PHP-5.4 with 'configure --enable-mbstring', it works fine. But, if I made it with 'configure --enable-mbstring --with-apxs2=/usr/bin/apxs2', a Shift_JIS encoded PHP script causes the parser error. For both cases, zend.multibyte and zend.script_encoding can be specified. I believe that it was OK in Ubuntu 11.04 with the same option (--with-axps2). Rui Yasuo Ohgaki wrote: > Hi all, > > I noticed that "Zend Multibyte Support" won't be on with > > ./sapi/cli/php -d zend.multibyte=1 > nor > zend.multibyte=on (in php.ini) > > This happens both php-src and php-src-5.4. > > According to php.ini-production from php-src: > ; If enabled, scripts may be written in encodings that are incompatible with > ; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such > ; encodings. To use this feature, mbstring extension must be enabled. > ; Default: Off > ;zend.multibyte = Off > > I thought it became runtime option. > Is this a bug or am I missing something? > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net >