Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121874 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 74945 invoked from network); 30 Nov 2023 09:03:10 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Nov 2023 09:03:10 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 67FDC180031 for ; Thu, 30 Nov 2023 01:03:17 -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-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) (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 ; Thu, 30 Nov 2023 01:03:17 -0800 (PST) Received: by mail-oi1-f170.google.com with SMTP id 5614622812f47-3b2e330033fso385628b6e.3 for ; Thu, 30 Nov 2023 01:03:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701334987; x=1701939787; 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=84PbUrn8lLUUuFJXu/7de2YFwO6DUy0dqVp0M8Vbl6w=; b=V9+Y7d9y+P155dqenlzjn56uDx/lPRK2qMEQ+BeuFDnO1YqdxQe2iX/q12H9ldiwq3 N0RFBiwoo7LtBzYIIwxIUC8COhRadNHNzu4lBdaZtFHd3SWRT02iEaNwSp2F332i8PUB fAzApZ+4k7vltiu7dOwygk6KYSYu0N+qP7kTp43nFYpgMzR1FuSptcAUU7ccVDgH6Ta0 WdApuyUxc+nLUcnHCT479kWaSYzyZH0S7tdWEOo3BQVwpgYsIeAKaqqpKS8eAiUk+YIP aWCyN+qWIl7RSKCqwMsTLCZJEZtaJWIVyjJVdMnEGk58RXytYNtG50li/zRAXN3Ve0ZO km+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701334987; x=1701939787; 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=84PbUrn8lLUUuFJXu/7de2YFwO6DUy0dqVp0M8Vbl6w=; b=bo7BBeppfEsVW5+RpCUsjpembJgZfaU/Ai24TQ+wCr1kCZAjijNCPB2aOfSBjjHYhg L7aVxPO4wgtv60Aa5B/jz0DV9I7OmXZ0cXcdcm3ceEpRchv2gmnSFjxG4XOAoOnoxf3Z DWWYYx8lAzuTk7JOdmiKnHYkVEJLvkUiRL8eA3/OzgOfvN56O0t8iP2xXjkOdZAnSws3 +7nPCtB2cGJ9pL82c4R1Hs8cay8zIKLbnI4aXP0C4l3R42NwsEagGss6KDw+JElhh/ZS Q0O9qCQ7MiVsZ+npqHlHR9khFEaqlyvz5P4FGxoOWPzZ3rzPXkk0afaN54Xcox+0HyUq JraA== X-Gm-Message-State: AOJu0YxSRbRK2UXijtZixUFWmbUZ2EgLc7bAKW/PBVxLpo+LkFpe2a6/ nDDiKxqAG/Wc4mt7AoUdnsmiZdTYLqsP27HbRYQ= X-Google-Smtp-Source: AGHT+IEKYz/0G+U5t67sAC2IYSNKjJFR9qQ/NzT8ZyvubQgzYh8VU2jznFVti1zeiz8ykb1Gtqcs/VhOotLiuloE+30= X-Received: by 2002:a05:6808:23c9:b0:3b5:ae0d:b208 with SMTP id bq9-20020a05680823c900b003b5ae0db208mr30088079oib.6.1701334986778; Thu, 30 Nov 2023 01:03:06 -0800 (PST) MIME-Version: 1.0 References: <1BA05C1A-AFAE-4E86-BAA2-420B22549519@gmail.com> <0D8856BC-DDEE-47F8-8C59-7F4DC7A64237@woofle.net> <2FF6C60C-300D-4900-84B8-0DF4311143A7@gmail.com> In-Reply-To: Date: Thu, 30 Nov 2023 10:02:55 +0100 Message-ID: To: youkidearitai Cc: 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: landers.robert@gmail.com (Robert Landers) On Thu, Nov 30, 2023 at 1:39=E2=80=AFAM youkidearitai wrote: > > > Many languages like Rust only support UTF-8 > > (https://doc.rust-lang.org/reference/input-format.html), and I don't > > think any new PHP developers will expect PHP to work with non-UTF8 > > encodings in the first place. > > Hi, > > PSR-1 is required use UTF-8. > > https://www.php-fig.org/psr/psr-1/ > Files MUST use only UTF-8 without BOM for PHP code. > > And, Rust is newer than PHP that is very long history. > If we were compare in PHP, almost we would compare language same old > year. Java, Perl, Ruby and Python etc. > (Java's default encoding is UTF-16). > > Therefore, I think we should stay with PSR-1 "MUST use only UTF-8 without= BOM". > > Regards > Yuya > > -- > --------------------------- > Yuya Hamada (tekimen) > - https://tekitoh-memdhoi.info > - https://github.com/youkidearitai > ----------------------------- > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > PSR also says that code should use spaces instead of tabs. Should PHP stop parsing code that uses tabs instead of spaces? I don't think that PSR has any relevance to this conversation because it is _too_ opinionated. Sometimes that opinion helps, and sometimes it gets in the way and stifles innovation and creativity. Robert Landers Software Engineer Utrecht NL