Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114875 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 35557 invoked from network); 15 Jun 2021 06:40:51 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Jun 2021 06:40:51 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D0DFD1804CC for ; Mon, 14 Jun 2021 23:57: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,FREEMAIL_FROM,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-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 ; Mon, 14 Jun 2021 23:57:14 -0700 (PDT) Received: by mail-wm1-f50.google.com with SMTP id h22-20020a05600c3516b02901a826f84095so1303651wmq.5 for ; Mon, 14 Jun 2021 23:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rZuq8REk8Vqe2WqYmn/8vw9psQazaVLPceen9bL1yec=; b=YFT3L6SNi7lHvRqn4dm6nwQWbyJVTqp25628VP09ZNrJGJuQ6xrBX7GkqzZf+BEyo1 IvHbdXYYA3EbOrPX3c/Ie0wbz9j6dvEZa1D98s+re/Mrg5pwxVX+Msm1DlltXulekE/I MdEZenFZcHKUtRTfgBp8qse3lq322atLiZ087zATpIc0pE+N/kc9MQ8wwBLTeG4W4E3B d9GhExPmCfLRT2232D8vGUcXqua7pGun0hum1aZB8hDCtCSbgIZGGRZ7ivgC1zIOG2+p Fm3dTDOW61ec7N3aNirHmI156YTa1KpTAxu+AofqkjCJYl6bYdVPLkRT54htGKd6lyHv xIDw== 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=rZuq8REk8Vqe2WqYmn/8vw9psQazaVLPceen9bL1yec=; b=oEHArjlOMjW86oMXXfg51drFbUaAXpCu+/xxUl/ecWBDYG+0tsw0fZ8CAPrG5oggNL ZIhlJsK+PqLPD6P/YRwInCcXpMpQ+OYsVllJn0COfUVF3BsNxJYCiKghDrwAlAs9ol+N Kxu5+QO75JBE/Dhrpxj2wagtHFGAOBUn8CRXyC3tftsChyqeWXIDT8MrvqyWXTk2js6B NhFSZxUq5Rg9l6F7UxgPfqUvL8Q0p83V+nOsjHgSktzHV2VM4lDNSUhg0QTpNSzSUBXn rQwB1FqvjXpEmfdFOl+iFr9ofdlsYDFVLaZYCdrPrMmIzFQeJYNZYtFv9R2LSjR49NMp 5IUw== X-Gm-Message-State: AOAM533T0GlYDa4MXBYAcmupUTPJYdOhF3kGHGBgq6nAMpHQY3//CEx7 R+NAi1bYHMj1xX+hbDp9l472PMDrJc5CjoSB9ks= X-Google-Smtp-Source: ABdhPJwEthl/oejM3eogSPBggvk8z/VkNxXw7qiq2FpLE8Vk1pmM1FHyJ12i3GT+sSTLCA7Je47d65qNKNENFVmW9G4= X-Received: by 2002:a1c:2584:: with SMTP id l126mr3337193wml.83.1623740231422; Mon, 14 Jun 2021 23:57:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 15 Jun 2021 08:56:59 +0200 Message-ID: To: Claude Pache Cc: Nikita Popov , Marco Pivetta , PHP internals Content-Type: multipart/alternative; boundary="000000000000b3973b05c4c87bdc" Subject: Re: [PHP-DEV] Allow objects in define() From: nek.dev@gmail.com (Maxime Veber) --000000000000b3973b05c4c87bdc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > Not sure about specific use cases, for me the important aspect here is = to > > avoid arbitrary restrictions. For example, define() accepts resources, > and > > this is used for some core constants like STDIN, STDOUT, STDERR. > > > > Per the documentation [1], defining resource constants is supposed to > =E2=80=9Ccause unpredictable behavio[u]r=E2=80=9D and is =E2=80=9Cnot rec= ommended=E2=80=9D. Is this correct > or just FUD? > > [1]: https://www.php.net/manual/en/function.define.php < > https://www.php.net/manual/en/function.define.php> > It also states that it is used for STDIN, STDOU and STDERR, which will be objects in the future but will still need to be defined for BC. Regards, Maxime --000000000000b3973b05c4c87bdc--