Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119346 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 70692 invoked from network); 19 Jan 2023 10:30:39 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Jan 2023 10:30:39 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 846E5180088 for ; Thu, 19 Jan 2023 02:30:36 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15623 212.45.192.0/19 X-Spam-Virus: No X-Envelope-From: Received: from mail.gna.ch (mail.gna.ch [212.45.196.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 19 Jan 2023 02:30:35 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id 2800E3A0DC4 for ; Thu, 19 Jan 2023 11:30:34 +0100 (CET) X-Virus-Scanned: amavisd-new at example.com Received: from mail.gna.ch ([127.0.0.1]) by localhost (darkcity.gna.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RUOLFCHHXhr5 for ; Thu, 19 Jan 2023 11:30:33 +0100 (CET) Received: from smtpclient.apple (unknown [IPv6:2a02:1210:2ea4:cf00:6868:86a7:800:967f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id B9A3C3A0CDE for ; Thu, 19 Jan 2023 11:30:33 +0100 (CET) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Date: Thu, 19 Jan 2023 11:30:33 +0100 References: To: php internals In-Reply-To: Message-ID: X-Mailer: Apple Mail (2.3731.300.101.1.3) Subject: Re: [PHP-DEV] Measuring Proposal Reaction From: cschneid@cschneid.com (Christian Schneider) > Am 18.01.2023 um 23:29 schrieb Larry Garfield = : > On Tue, Jan 17, 2023, at 1:25 PM, Jesse G. Donat wrote: >> I'm looking to measure reaction to a proposal. >>=20 >> My proposal is to have the STDOUT and STDERR global constants always >> defined rather than just when running via CLI. >=20 > Does anyone know why those constants are left out? Given that the = functionality can still be used, as noted... I could imagine old code checking if STDOUT/STDERR is defined to = determine if they are running in CLI. While there are now other ways to do it it would probably be a minor BC = break to now defined them. Turning the question around: As there is already a way of accessing = STDOUT/STDERR with php://, should we introduce a BC break? Side-note: If we decide to now define the constant for all SAPIs, should = defined('STDOUT') etc. throw some sort of warning so code checking for = it can be found more easily? - Chris