Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114944 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 73012 invoked from network); 18 Jun 2021 10:28:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Jun 2021 10:28:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DD5051804C0 for ; Fri, 18 Jun 2021 03:45:17 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 18 Jun 2021 03:45:17 -0700 (PDT) Received: by mail-lj1-f171.google.com with SMTP id s22so13404162ljg.5 for ; Fri, 18 Jun 2021 03:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craigfrancis.co.uk; s=default; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jF2/EymRVgWQzQdd1xI8VqyCIQlgObKHLNNUTB9bhB8=; b=edCwSMn/t7IsH1LqsYu7/C2jZFwJS4ZtuBsqlP3pJQ5kbBPl/SDwtIGHMJssqvE1L3 Srrt8aiFu5GYdYMqCNk1eq+ejdMj7vAX93KN8A5Rmc1QdQPQPHy08sZtjmx+vp2d29xq mv4HJm9LUv3N3c+4wEZlfanu4iLn+cYTA26bU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jF2/EymRVgWQzQdd1xI8VqyCIQlgObKHLNNUTB9bhB8=; b=rsY3IqswPa0xMtkw1TnjiU//BrjnzzKNb3WpxjaZ6Tbn3zhd+aimwNpTI+VlEE8KRN X8P1f8PYV6+AlA4Fj6gNdTryR2XJ2+q+w1bG7uP6SKYZzZ+fBXdudkVsMwBMBY8R/+K0 Agp0HV4PzFWgQ+dyPAD+Uc66LvhbBsYELxiVCqYoNlf4FSVY5EUrEPWb879jb8Iunpho tVlyMsIdxrtk4tzuO1z1ScYo2khDni3S0U2ZhNnJ0eXFfplyc1fJCDS4hiElHg5NvNjB mq0grzSJ1ZRfgQMQFIx1zROKqyCKmNGM4L2q66HwxXrgX2xTqMW2lHJ8QC7XjJZRq1Gr qoPg== X-Gm-Message-State: AOAM533cig6+nbt/T8xrdSOUXFGbblMugRmURiN3SrTTRzCnJEptyi3N kWgSVonN5bXFWjGpg0wl/35/01UYqIX21woLWhQJpg== X-Google-Smtp-Source: ABdhPJxZAxBxdMhrqQkyrDoDJeXAniVxxk6wQwg5k6WJPYtOfMy/wG1W/YcgqqelKhaWItpD1+PHWqWDk2lrlCBwkPg= X-Received: by 2002:a2e:5c42:: with SMTP id q63mr8769586ljb.23.1624013110519; Fri, 18 Jun 2021 03:45:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 18 Jun 2021 11:44:58 +0100 Message-ID: To: Marc Bennewitz Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000903a4205c508040a" Subject: Re: [PHP-DEV] Re: [RFC] is_literal From: craig@craigfrancis.co.uk (Craig Francis) --000000000000903a4205c508040a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 18 Jun 2021 at 9:48 am, Marc Bennewitz wrote: > Not sure but what happens if you have like a DB connection in big5, > sjis, ... and add an integer as ASCII char into it? But that's the only > edge case I can think of. The integer character code points are the same in all three. PHP represents integers with the western arabic numerals 0-9, so as long as their code points are the same, nothing changes between any of the charsets. While I=E2=80=99ve not checked all other character encodings (far too many)= , the ones I did check were the most-used character encodings and they all used extended ASCII (that includes big5 and Shift JIS). The only exception is that there is something called EBCDIC (an old IBM character encoding descended from punch cards), but it=E2=80=99s very depre= cated and PHP doesn=E2=80=99t work with it anyway - PHP explicitly has not suppor= ted it since 8.0 =E2=80=9CEBCDIC targets are no longer supported, though it's unlikely that = they were still working in the first place.=E2=80=9D https://www.php.net/manual/en/migration80.other-changes.php --000000000000903a4205c508040a--