Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121840 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 55635 invoked from network); 29 Nov 2023 00:18:33 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Nov 2023 00:18:33 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3191718003C for ; Tue, 28 Nov 2023 16:18:40 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 28 Nov 2023 16:18:39 -0800 (PST) Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-3331752d2b9so93670f8f.3 for ; Tue, 28 Nov 2023 16:18:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701217111; x=1701821911; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FEpCkTwyMWylIctwTHEA/C+vlKC33rb4ed3gjBM3mEc=; b=A8jA4aatcOOTp2nMnzZsyyFet1G9mvVLf/VWfMLl3DhummTK5PncsJhhBHp+sjN/vm s1uG57i6ZAA80yDaxSoT5YIa9Q7e9e2iT8Aq7rP74YZ8Y7sbqupnTwFqzQNwThPH+fW3 +BR0Wrhv8LLTfBBixrC8BxSxH1vNw0GuemmR33o48vtLk/bQcAEdemITng1RRQ64eK49 aBipFPgH0a8sScS3Ec0iKmAmr2VcODwQC0/T6Zq11vtpo9A5hOjSaNcJfY2fVkYcBTWK 1dQTK6NDEB7MmZslv6iqFKjMGAlBSTetvoDD0PpP1A7QgNJIzUmO2P8laGsg23h85643 3TOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701217111; x=1701821911; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FEpCkTwyMWylIctwTHEA/C+vlKC33rb4ed3gjBM3mEc=; b=agxBB57MEdv1CTtRyq5LNL/Vja0qehXtK2zcny0irxwxcm/cDnqDJCaD60v/fVldT6 bc4+KIqf/0gDg40iLjIo98vOYh9wWMR/OlUVvw7FJ5Wn98PmgvRNVIhGKAjUqVSsjoyQ 7IyQIn7iYyuMewrro8/LbIgY6Iv5+2WVS+mxwxa2SzeeFUcLQ6ua2R0mLcL0tzZMQ861 qlD65fuJbpPDLgkvPrwUCqB/22rDsKY1YX3un/mqBG12Xl+4RJifEjc+hKndQWbpYh99 GKaNNsfoy9NzKzaUfRVk85RL2T93mVF2RAY6Dp0/RxRr7Q4nIVNaHtIhQk9bwBkC173k phOw== X-Gm-Message-State: AOJu0Yz2dYlJCyiGWxVI3tU7Mo4Ont2s1BtX3CozQzJXEnW7c8RM213T Q0Gd4kMZ0AM+/L0MCkTtPZ4EAJgL2/BpG8Ked/y0Fj/y8KP5 X-Google-Smtp-Source: AGHT+IGUcHeRiio8Tkk7CwwD3NAio2dZ4TrbFizSe+gwfCmMsTNMSSyuL8SM8gfEt9kwmEG+IOfYi9XRlfNXh+JSp6s= X-Received: by 2002:a5d:4804:0:b0:32f:7b89:2675 with SMTP id l4-20020a5d4804000000b0032f7b892675mr12352932wrq.65.1701217110194; Tue, 28 Nov 2023 16:18:30 -0800 (PST) MIME-Version: 1.0 References: <1BA05C1A-AFAE-4E86-BAA2-420B22549519@gmail.com> <0D8856BC-DDEE-47F8-8C59-7F4DC7A64237@woofle.net> In-Reply-To: Date: Wed, 29 Nov 2023 09:18:19 +0900 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ? From: youkidearitai@gmail.com (youkidearitai) 2023=E5=B9=B411=E6=9C=8829=E6=97=A5(=E6=B0=B4) 9:04 Hans Henrik Bergan : > > Do you have access to a project actually using Shift_JIS? Interesting! > I thought they were practically unicorns / non-existent running PHP4, > > Can you run > ``` > var_dump(array( > "biao_hex" =3D> bin2hex("=E8=A1=A8"), > "zend.multibyte" =3D> ini_get("zend.multibyte"), > "zend.script_encoding" =3D> ini_get("zend.script_encoding"), > "zend.detect_unicode" =3D> ini_get("zend.detect_unicode"), > "mbstring.internal_encoding" =3D> ini_get("mbstring.internal_encoding= "), > "mbstring.func_overload" =3D> ini_get("mbstring.func_overload"), > "PHP_VERSION" =3D> PHP_VERSION, > )); > ``` Hi, Hans I'm trying to above code. Nothing config: =E2=9D=AF ~/php82/bin/php deprecate_zend_scriptencoding.php PHP Parse error: syntax error, unexpected identifier "zend", expecting ")" in /Users/youkidearitai/deprecate_zend_scriptencoding.php on line 5 Parse error: syntax error, unexpected identifier "zend", expecting ")" in /Users/youkidearitai/deprecate_zend_scriptencoding.php on line 5 Use zend.script_encoding=3Dsjis and zend_bultibyte=3Dtrue =E2=9D=AF ~/php82/bin/php -d zend.script_encoding=3Dsjis -d zend.multibyte= =3Dtrue deprecate_zend_scriptencoding.php array(7) { ["biao_hex"]=3D> string(6) "e8a1a8" ["zend.multibyte"]=3D> string(1) "1" ["zend.script_encoding"]=3D> string(4) "sjis" ["zend.detect_unicode"]=3D> string(1) "1" ["mbstring.internal_encoding"]=3D> string(0) "" ["mbstring.func_overload"]=3D> bool(false) ["PHP_VERSION"]=3D> string(5) "8.2.8" } Therefore, zend.script_encoding and zend.multibyte is very important. Regards Yuya --=20 --------------------------- Yuya Hamada (tekimen) - https://tekitoh-memdhoi.info - https://github.com/youkidearitai -----------------------------