Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121833 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 42327 invoked from network); 28 Nov 2023 22:57:53 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Nov 2023 22:57:53 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C0FB418002F for ; Tue, 28 Nov 2023 14:57:59 -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_MISSING, 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-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) (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 14:57:59 -0800 (PST) Received: by mail-il1-f179.google.com with SMTP id e9e14a558f8ab-35d26b3e6edso2577175ab.2 for ; Tue, 28 Nov 2023 14:57:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itafroma.com; s=google; t=1701212270; x=1701817070; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=laKepqCJ5oXTS5sGQFaZrYecGjDJKaK7MnjF0wx43o4=; b=V/ay88m2KXDc1hCtkdo6b0CWJsUf+FsqbP3hcGN6GBoF8ojUhlKxXRvZljqLxnhfDg EtFWiOsrJM51GtKesn1Sdl5N1r/I1C8twIDYZ9Rzqu/05Pz1m46MVb096uESg+cPsFTm Pe8sozxkDNn34WPWZZeGJO80PSYeSIVBJFsms= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701212270; x=1701817070; h=content-transfer-encoding:cc: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=laKepqCJ5oXTS5sGQFaZrYecGjDJKaK7MnjF0wx43o4=; b=QpCySAJuClU7dz5hzajg9ZXaSXoWrvMyMNZ9SRzYuJknT1hegU7M7Fsa1klK7V3R5M 5xAjqBtSrixmY57Rp3UbTCG7jgh0LyHa/n7hQ8bSdHyzYLEZquovQqTrmYbffnezu76Y jAflhdneL89kehi+iVJWqLlNxDRLp976QgxkZmy3kftJo379pqccz6unfdDuSnEmytqi ElH/LPDjR57VZCoFkaL2ePoNkFk9ldUOToa9oFhqfa6riXMDPkNA49Yx84WH+ncJHwI4 sp+rrXeisBzkk4QDwsrdtmklj67T7x7Ut4wN4tfaSM4VlwTW+Qdd5WlcUf8gWowWQFTv zoqA== X-Gm-Message-State: AOJu0Yy3fI8kg/hBsGFyY/U34SZYbtxWbDquDU0LYpE8G72ckNOe4Ozb 7CyzwDuWqiXpaNeXVQkFnbfGSkFiMSfs90bM4/XY5Q== X-Google-Smtp-Source: AGHT+IGmP8Ww/F0K7A0b246DtuzciWm3qcITxxsi46aDpfMwhRlzhsMsFM1MDO0JSWtRuB2vdBSA3pXeEk1pymbGdiA= X-Received: by 2002:a92:520d:0:b0:35c:9dca:dfa8 with SMTP id g13-20020a92520d000000b0035c9dcadfa8mr13186937ilb.23.1701212270753; Tue, 28 Nov 2023 14:57:50 -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: Tue, 28 Nov 2023 14:57:39 -0800 Message-ID: To: Hans Henrik Bergan Cc: Claude Pache , Kamil Tekiela , Dusk , PHP internals 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: mark@itafroma.com (Mark Trapp) On Tue, Nov 28, 2023 at 12:48=E2=80=AFPM Hans Henrik Bergan wrote: > >If the solution is as easy as just converting the encoding of the > source file, then why did we even need to have this setting at all? > Why did PHP parser support encodings that demanded the introduction of > > I've read your question but don't have an answer to it, hopefully > someone else knows. These settings predate the ubiquity of UTF-8, which did not begin to see widespread adoption until the mid-to-late 2000s, and did not reach ubiquity until the mid-2010s: https://en.wikipedia.org/wiki/Popularity_of_text_encodings mbstring.script_encoding was introduced with this commit and released in PHP 4.3 (renamed to zend.script_encoding in PHP 5.4): https://github.com/php/php-src/commit/f30b722f14521fbad2fabe5fdcaa2b60fe97e= ebb zend.detect_unicode introduced in this commit, released with PHP 5.1: https://github.com/php/php-src/commit/a8c6b992b8894763c59276c1142971aa9a314= 500 zend.multibyte introduced with this commit, released with PHP 5.4: https://github.com/php/php-src/commit/ab93d8c621645e05d6a6a431d52ac64eda956= 673 declare(encoding) appears to predate all of the PHP 4.0 tagged releases, including the pre-release ones. - Mark Trapp