Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35515 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52896 invoked by uid 1010); 15 Feb 2008 11:24:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 52881 invoked from network); 15 Feb 2008 11:24:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Feb 2008 11:24:19 -0000 Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:37631] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CB/46-26828-16675B74 for ; Fri, 15 Feb 2008 06:24:18 -0500 Received: from dhcp-172-28-202-237.zrh.corp.google.com (unknown [193.142.125.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 59BDA1B3684; Fri, 15 Feb 2008 12:24:13 +0100 (CET) Date: Fri, 15 Feb 2008 12:24:14 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1158304008.20080215122414@marcus-boerger.de> To: Dmitry Stogov CC: jani.taskinen@iki.fi, PHP Internals List , Andi Gutmans In-Reply-To: <47B568A6.9060704@zend.com> References: <971575499.20080209153315@marcus-boerger.de> <47B54F0C.2090700@zend.com> <1203067815.10500.5.camel@localhost.localdomain> <47B56334.9070007@zend.com> <1203070677.10500.12.camel@localhost.localdomain> <47B568A6.9060704@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Conditional INI support From: helly@php.net (Marcus Boerger) Hello Dmitry, shouldn't this be like in C/C++ where a non existing value is treated like an empty string which behaves like false in boolean evaluations? marcus Friday, February 15, 2008, 11:25:42 AM, you wrote: > #if defined(PHP_MAJOR_VERSION) && PHP_MAJOR_VERSION >= 6 > extension="unicode.so" > #endif > Here PHP_MAJOR_VERSION is a PHP constant that is not defined in php-5.3 > but might be defined in the future version. > Dmitry. > Jani Taskinen wrote: >> On Fri, 2008-02-15 at 13:02 +0300, Dmitry Stogov wrote: >>> Jani Taskinen wrote: >>>>> c) We can use just "value" insted of ${value} in conditions. >>>> Yup. ${foobar} is actually not any "variable" per se, but just a >>>> reference to existing ini entry in the file. And I don't think that >>>> needs to change. >>> Oh, I see. Then we can use just "$string" (or "$str.str") for ini >>> entries and "string" for PHP constants. We can also implement defined() >>> macro-function, to check if constant defined. >> >> Why? Don't make php.ini parsing any more complex than it already >> is(n't). >> >> Any string which can pass as constant will have that constant's (or >> environment variable) value. Why do you need any "variable" in there >> anyway? And why do you need defined() ??? (examples please? :) >> >> --Jani >> Best regards, Marcus