Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114874 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 32869 invoked from network); 15 Jun 2021 06:27:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Jun 2021 06:27:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 123F91804C8 for ; Mon, 14 Jun 2021 23:44: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_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-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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:44:06 -0700 (PDT) Received: by mail-ej1-f44.google.com with SMTP id g8so20667593ejx.1 for ; Mon, 14 Jun 2021 23:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=FftXIhuQaq3o5oNjIyRpoCEQEAx7+M2z76LIn4T+NTw=; b=NatL55RYVIz+Or7YrBAXWelrq8clLjXth4FEYkmKdUaIRIzsp4X7vsdK00IZRSF1HL 3yMH8jVKrL8CIaY9a/Oki3Dcr9zKk1Jm/KCMT7NBCFDHn8e1IB/kvDUg7uJU38Mdeyvx UpDKjTpyFHee7KGc70qsM7Gbu6q0CxWAu2NcS/5NURyKtPH+hVCn90067xOGc4P7E+LK qIhopjDka4tcckFrRKT5mrDstgpDhPJ1gs+FDPjeDk2M6usCZWE7yZWJZ26qfUThziCz xosxQxpeZS90LyuuqpWucPpbGANb1tFQ6va2ENPMqqe1RrJPiLcjv68+7Bnbcv0cM36d DCjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=FftXIhuQaq3o5oNjIyRpoCEQEAx7+M2z76LIn4T+NTw=; b=gzxti9R7m1M8Xh+hYeD8G/5LjIeBCkunsPFrS7qZZcjfvm5/gIT1ov6si4By4KulqK LFXAjMDelVFZzuVY7NITu+9H+vZ143Nm6p9T/1GrOWLFw0sLu5mOFeDMy6+o5zzw2lhc C6Ho66kimZhfKbgen0JwHezcfFw3FsHkIUkP95tCdG3xIrXBl5hwWROHkAqmQW6B77JI piRQh70Tv0z/T3ysbbKWIENnM3bG28WF7DyZiLebY6W6hGd5TztYCAWxI3B2u7hbcUMb XVzSQFQJSraqokW6T1RF2VSeLwMfSz0z0UQi5sBs82l246zJ5wC437CtYvs9RdzAiJAD tqhg== X-Gm-Message-State: AOAM5309fUK2WYKmwKkW6vRDS+17J1kfARo/nztpyjikGxNrdvJvGmsw z5DGcRfE1crI6nHy/zJSy58= X-Google-Smtp-Source: ABdhPJxy+TL+ihJoBji3E3YbYanz0JI9zXKxpercOSeAtHktiv7P/li/FU7MUgDKM/KjgGspS9WNqA== X-Received: by 2002:a17:906:9455:: with SMTP id z21mr18774233ejx.491.1623739445132; Mon, 14 Jun 2021 23:44:05 -0700 (PDT) Received: from claude.fritz.box ([89.249.45.14]) by smtp.gmail.com with ESMTPSA id du16sm8735918ejc.42.2021.06.14.23.44.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jun 2021 23:44:04 -0700 (PDT) Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_CEFC909C-4E0F-4CC0-B549-C1C3A0598D9B" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Date: Tue, 15 Jun 2021 08:44:03 +0200 In-Reply-To: Cc: Marco Pivetta , PHP internals To: Nikita Popov References: X-Mailer: Apple Mail (2.3608.120.23.2.7) Subject: Re: [PHP-DEV] Allow objects in define() From: claude.pache@gmail.com (Claude Pache) --Apple-Mail=_CEFC909C-4E0F-4CC0-B549-C1C3A0598D9B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 >=20 > 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. >=20 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 = recommended=E2=80=9D. Is this correct or just FUD? [1]: https://www.php.net/manual/en/function.define.php = =E2=80=94Claude= --Apple-Mail=_CEFC909C-4E0F-4CC0-B549-C1C3A0598D9B--