Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56019 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33395 invoked from network); 3 Nov 2011 08:13:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Nov 2011 08:13:31 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:37864] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/D2-14104-B2D42BE4 for ; Thu, 03 Nov 2011 03:13:31 -0500 Received: by ggnk4 with SMTP id k4so404236ggn.29 for ; Thu, 03 Nov 2011 01:13:28 -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:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=wwgwoAqMrfiGa/NZFfIXXng9AyOfDUgTNv0Ur7Lu3aU=; b=YPWUiCSOQhX3sBc1r+ejEDX9GOeDf2Dt9zbgu35bZ5/AstF9hM3hsSCM57Dh1mZYM9 hpe4GqnYsf0o4ui6U14MUIe00hZPO9iDQ1zgXMPAXBZWbT7eeNl20foKj9l10wsBp7JR 2IVZ4qLQUYtsYDn31mM14uN4mCHXugm9NLZgk= Received: by 10.100.192.17 with SMTP id p17mr1810032anf.149.1320308008126; Thu, 03 Nov 2011 01:13:28 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.100.106.11 with HTTP; Thu, 3 Nov 2011 01:12:47 -0700 (PDT) In-Reply-To: <4EB23E3D.3010908@zend.com> References: <4EB23E3D.3010908@zend.com> Date: Thu, 3 Nov 2011 17:12:47 +0900 X-Google-Sender-Auth: 9-Sj8trWqmriMOSHacxmRF5ruvk Message-ID: To: Dmitry Stogov Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Zend Multibyte support From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi Dimity & Rui, I was trying to see if PHP 5.4 and trunk was also affected by this bug repo= rt. --with-zend-multibyte and --enable-debug reports LEAK with run-test.php https://bugs.php.net/bug.php?id=3D60194 So I configured as "./configure --enable-debug" Sorry for being a lazy reader. I could turn on zend.multibyte with "--enable-mbstring". Now I see PHP 5.3 doesn't have dependency to mbstring, but PHP 5.4+ has. I haven't read the last sentence.Thanks. It looks like php-src-5.4 doesn't has leaks as PHP 5.3 does. (I haven't completed the test, since it seems zend.multibyte is NOT working= ) $ TEST_PHP_EXECUTABLE=3D./sapi/cli/php ./run-tests.php -m -c ./php.ini =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D PHP : ./sapi/cli/php PHP_SAPI : cli PHP_VERSION : 5.4.0RC1-dev ZEND_VERSION: 2.4.0 PHP_OS : Linux - Linux dev.inter.es-i.jp 2.6.35.14-2m.mo7.x86_64 #1 SMP Mon Sep 12 11:09:50 JST 2011 x86_64 INI actual : /home/yohgaki/ext/svn/oss/php.net/php-src-5.4/php.ini More .INIs : CWD : /home/yohgaki/ext/svn/oss/php.net/php-src-5.4 Extra dirs : VALGRIND : valgrind-3.6.1 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D TIME START 2011-11-03 16:36:57 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D PASS EXPECT [tests/run-test/test001.phpt] PASS EXPECTF [tests/run-test/test002.phpt] PASS EXPECTREGEX [tests/run-test/test003.phpt] ..... However, I got the same parse error, as Rui mentioned, with SJIS source scr= ipt. sjis.php ---- On =3D> On $ ./sapi/cli/php /usr/local/apache2.0/htdocs/sjis.php PHP Parse error: syntax error, unexpected ''=EF=BF=BD\';' (T_ENCAPSED_AND_WHITESPACE) in /usr/local/apache2.0/htdocs/sjis.php on line 2 It seems like working with zend.multibyte=3DOff. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net On Thu, Nov 3, 2011 at 4:09 PM, Dmitry Stogov wrote: > Hi Yasuo, > > how did you see that "Zend Multibyte Support" weren't enabled? > > $ sapi/cli/php -d zend.multibyte=3D1 -i | grep -i multibyte > > Zend Multibyte Support =3D> provided by mbstring > zend.multibyte =3D> On =3D> On ****** > Multibyte Support =3D> enabled > Multibyte string engine =3D> libmbfl > Multibyte (japanese) regex support =3D> enabled > Multibyte regex (oniguruma) backtrack check =3D> On > Multibyte regex (oniguruma) version =3D> 4.7.1 > > Thanks. Dmitry. > > > On 11/03/2011 04:32 AM, Yasuo Ohgaki wrote: >> >> Hi all, >> >> I noticed that "Zend Multibyte Support" won't be on with >> >> ./sapi/cli/php -d zend.multibyte=3D1 >> nor >> zend.multibyte=3Don (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. =C2=A0CP936, Big5, CP949 and Shift_JIS are the examples o= f such >> ; encodings. =C2=A0To use this feature, mbstring extension must be enabl= ed. >> ; Default: Off >> ;zend.multibyte =3D Off >> >> I thought it became runtime option. >> Is this a bug or am I missing something? >> >> -- >> Yasuo Ohgaki >> yohgaki@ohgaki.net >> > >