Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120692 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 37958 invoked from network); 27 Jun 2023 08:47:08 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Jun 2023 08:47:08 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AF5D31804D4 for ; Tue, 27 Jun 2023 01:47:07 -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,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 27 Jun 2023 01:47:07 -0700 (PDT) Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-977e0fbd742so518042566b.2 for ; Tue, 27 Jun 2023 01:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687855626; x=1690447626; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=j45SXKvcFArzaDcCjDD6hX4k8MFJV45FaXr2NT88Kos=; b=Qy5OTnRUiDJfwGa/UDeNk4uvNIGn0CQbUD3b9LDpDfsgZYLpqH0deD3XhqXESSPBoQ GCzXLRwtBr5+A5GtWwQuUHpiBCG/eUatdjkW6gCly8XP4XC+XH6OmrfVxNXshTf5cZIa aUZEtQgvTiH9s7cNEB0oMPN+vJ+hWhp+ItBvagJkIehxuChmxWFd94UEkiveEW2ONY3T mS72jbsvlF6It2jf/pWNofMrxOqbcR+2yyxagc2kiyBPApGdpoB+E7cZS/GdGEXk6l7p /Tko4UMlgPxcIPOrUO70LFO+oJu7xXBUxiRJL54qRxMCKvvTKld4wESJo9B+69b79xb5 Oruw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687855626; x=1690447626; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j45SXKvcFArzaDcCjDD6hX4k8MFJV45FaXr2NT88Kos=; b=jdfDSTpvzmHUx6dDQP5b4iQ8uVqgxAr3O/4v97XbahQGJjog+52whSUjkrUkU9Ia8Q T5CiATuIjqDBaeFgifnOUfdbCAYw+4UosO7JhLJkdoXczkBJU/LysJw/uiepnOqmW8wj 6VIE1dbzg2FlMcdDU9CZuBeBh5KCp5QW6kKi6AzqgDcrzOQ/4VkYktJM+VmSJVv4POoO eTTXyzaGrXN0bG6SL3VRdrP5nz4+Fdwemz32PQy34wyZHqFZo2NyOeXw58hCfEzKwyZz xF0qfutJqFsDC9xl1x6ied4VhYYsNbTgi8yQ3+Trt81jSw3EvZTCt/5Sijek+nPR4lwI TckQ== X-Gm-Message-State: AC+VfDzjxnq6kENsln9bODjPVnZXIUH3EUbxMILnGasv538VVztXksN5 viFoafZrQuEhclqOX+AxCC8= X-Google-Smtp-Source: ACHHUZ4qYC+k7/n1Vh9JSiaML+5Ph+jVh9Y38ymQSsOwpGaj55bj7cf6PVTQSiegVAelorFM6I0xZg== X-Received: by 2002:a17:907:72c2:b0:991:b2a2:e424 with SMTP id du2-20020a17090772c200b00991b2a2e424mr4694594ejc.76.1687855625344; Tue, 27 Jun 2023 01:47:05 -0700 (PDT) Received: from smtpclient.apple ([89.249.45.14]) by smtp.gmail.com with ESMTPSA id a25-20020a17090640d900b009923363f863sm224352ejk.42.2023.06.27.01.47.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2023 01:47:05 -0700 (PDT) Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_E1C5DBBD-2093-4BF9-8DA9-66511EE2E0AB" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Date: Tue, 27 Jun 2023 10:46:54 +0200 In-Reply-To: <63DC7264-4DE9-421B-B69D-469CE34BD6F7@gmail.com> Cc: PHP internals To: "G. P. B." References: <63DC7264-4DE9-421B-B69D-469CE34BD6F7@gmail.com> X-Mailer: Apple Mail (2.3731.600.7) Subject: Re: [PHP-DEV] [RFC] Deprecate remains of string evaluated code assertions From: claude.pache@gmail.com (Claude Pache) --Apple-Mail=_E1C5DBBD-2093-4BF9-8DA9-66511EE2E0AB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Le 27 juin 2023 =C3=A0 10:36, Claude Pache a = =C3=A9crit : >=20 >=20 >=20 >> Le 26 juin 2023 =C3=A0 17:06, G. P. B. a = =C3=A9crit : >>=20 >> On Wed, 31 May 2023 at 13:08, G. P. B. = wrote: >>=20 >>> Hello internals, >>>=20 >>> I would like to start the discussion about deprecating various = remains >>> from the now removed string code evaluated assertions functionality = of >>> assert(). >>>=20 >>> The RFC is located on the wiki at the following address: >>> https://wiki.php.net/rfc/assert-string-eval-cleanup >>>=20 >>> Initially, this was part of the mass PHP 8.3 deprecation RFC, but = only the >>> assert_options() function was part of it. >>>=20 >>=20 >> Head's up, I'm planning on opening the vote on this on Wednesday the = 28th >> of June. >>=20 >> Best regards, >>=20 >> George P. Banyard >=20 > Hi, >=20 > Still some points: >=20 > I don=E2=80=99t see the RFC listed under = https://wiki.php.net/rfc#under_discussion. >=20 > The RFC is imprecise in what is meant by =E2=80=9Cdeprecating=E2=80=9D. = I guess that a deprecation notice (E_DEPRECATED) will be triggered at = least under the following conditions: >=20 > * at startup when one of the assert.* setting has not the default = value; > * at runtime when `assert_options(...)` is used; > * at runtime when `ini_set(...)` is used to set an `assert.*` option = to a non-default value? >=20 > It is unclear to me what will happen when: >=20 > * `ini_set(...)` is used to set an `assert.*` option to its default = value, either as a no-op or not? >=20 > Moreover, by removing `assert.callback` (and other options), are you = effectively removing a feature? (I don=E2=80=99t really know, I have = never considered it even in my worst dreams.) If so, it should be noted = in a =E2=80=9CBackward Incompatible Changes=E2=80=9D. >=20 > =E2=80=94Claude >=20 ... and, of course, changing the return value of `assert(...)` from = `bool` (true) to `void` is also a BC break, (and it is unclear to me = what is the effective advantage of the break). =E2=80=94Claude --Apple-Mail=_E1C5DBBD-2093-4BF9-8DA9-66511EE2E0AB--