Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128868 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 62E6F1A00BC for ; Sun, 19 Oct 2025 19:14:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1760901257; bh=jaykY2kPp8CUvu7fB09dpRO74imvJwzQCzwS6kU9Olg=; h=Date:Subject:To:References:From:In-Reply-To:From; b=kk5Ypd41U/5HHimRw+vs9QMSQ23ZRBeKZkv3Bz9cIOQTYP/C38It+4aOjFrdQk8Rf Np9iBvs5DxH29baDvaG0kIzGf0vzhEcK0yB1lf9CFd2nwcqKu5LVoCHzshMWRArg5Z ODa+aV9R9Snz339RH9htmCjR1ItBUDwFIwKJAqSJlWz4qc5a80Kj8fUJ8XJViQJVX9 xTCv7Qc+VOUk3kp6OIuv6OMZ7lnHG6l9Bp+yN4uRx8E30jzuJ7AI+yJ+noILC8BNQZ kJq2p1yRLp4NXaKhxMQHQwjf3InsCbH23gteX6JlqUVAQYZMn8AdCglc7cdtBZnoc+ O094+p4pPP42w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6A010180032 for ; Sun, 19 Oct 2025 19:14:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 19 Oct 2025 19:14:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1760901241; bh=9Y89ZrXKGToEPHPCUzefR3mf3lXXJTJyKg6Cmu1IIg4=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=T3M2PPVoitvSJlKAuDMGIVKeE4PuBi//Jx/3YmTVvZOOcISPOZh90d80GcnPjXr/X 6ZkwH/3kKu43CKbTdvXvJ09Nyl9mFjeVrcqnBohXKYpoK7KpetO+CT6X9iGwUgelc/ PvYV0/tIoC3QKEPJhW+siantUXIjN94Z70b3ili6Mrjvik1GCDZQrdPMPbQ4NgMAE7 CSX0c9c2XeQr24irAZiuNIojsrf4NNHJq9x7vO0NBo9RRZTs7694jHsxm2YpHddLlG 4f7g6ktDvKpeOOwFYfUcnx5AGIfeBrCKTkZBfrS/YnJeRakaxEubyxIVo581UOI0gE /JazQY3PUXTsQ== Message-ID: Date: Sun, 19 Oct 2025 21:14:00 +0200 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] Deprecate Undefined Constant Usage in php.ini Files (GH-20060) To: Hans Krentel , internals@lists.php.net References: <1759668599422.2126186334.2604999201.ref@yahoo.de> <1759668599422.2126186334.2604999201@yahoo.de> Content-Language: en-US In-Reply-To: <1759668599422.2126186334.2604999201@yahoo.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 10/5/25 14:54, Hans Krentel wrote: > The php.ini file parser (as used by `parse_ini_file()`) supports > constant resolution, including core predefined constants. However, the > current behavior with undefined constants is inconsistent with PHP 8's > strict handling of undefined constants in regular PHP code. How would PHP differentiate between “constants” and “unquoted strings”, the latter of which are explicitly supported (and encouraged) by the INI file format? Best regards Tim Düsterhus