Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40293 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74134 invoked from network); 5 Sep 2008 23:58:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2008 23:58:45 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.234 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.198.234 rv-out-0506.google.com Received: from [209.85.198.234] ([209.85.198.234:22489] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/03-56363-2B7C1C84 for ; Fri, 05 Sep 2008 19:58:43 -0400 Received: by rv-out-0506.google.com with SMTP id g37so619636rvb.23 for ; Fri, 05 Sep 2008 16:58:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=jraf/IK39g2IWHMWgjROAEMD8Fg6yDbIOPBXTxe2hbo=; b=iNM/pUjTtRtdiJf5bbCztgRYkxIra0W968HGRjwDqi/4isO/cDmOpC3PI9XlmuGIGw Y8m5NE8JublS/NJi/IUOKIv8Qeohex+CME7WPuFi/zp0Y9J8xwQ2NZQrhAVhaTuxQFBB YozURJCFJn9cle+UpQH5lqOmdAh8erEFelPhw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=xPSdwmSjOpAdnaa6URUOxu0hazAb/N3goAuvWdUvlelvFA4NR4/Yu4oWN1VEFPzyLH aAt+t0Eiizkb80DALw1zKhRGICkR+BXpUN/YOHk7zBPiSGFy+8Ypgv4jKtiqqAfX1f9W fEJW5kG3zmN7rSdlaifkMm0uliA4aDBSWq8wc= Received: by 10.141.177.10 with SMTP id e10mr7006502rvp.112.1220659120013; Fri, 05 Sep 2008 16:58:40 -0700 (PDT) Received: by 10.140.178.14 with HTTP; Fri, 5 Sep 2008 16:58:39 -0700 (PDT) Message-ID: Date: Sat, 6 Sep 2008 01:58:39 +0200 To: "Stanislav Malyshev" Cc: "PHP Internals List" In-Reply-To: <48C1A51D.5030803@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080904190717.aaz97tz688oogc4c@horde.chinstrap.eu> <48C0488C.9090209@sci.fi> <48C04E6A.2080909@zend.com> <48C1A51D.5030803@zend.com> Subject: Re: [PHP-DEV] Re: ini-parsing, double quotes, windows in 5.3 From: pierre.php@gmail.com ("Pierre Joye") hi, On Fri, Sep 5, 2008 at 11:31 PM, Stanislav Malyshev wrote: > Hi! > > Attached is the patch that does the following for php.ini parser: > 1. \{LETTER} is literal inside "" now, whatever the letter is > 2. \" is " inside "", with exception of: > 3. foo="bar\"{NEWLINE} is parsed as bar\ - i.e. \ is allowed before closing > " but only if the line ends there (otherwise it's impossible to know what > the intent was). > > That should make Windows paths work just fine (unless you have some really > weird ones that I didn't think about) with double quotes. That's exactly why I am reluctant to change what Jani did. It is easier to deal with this minor breakage in 5.3.0 and then have a consistent and clean configuration system. Continuing to add some exceptions while hoping that "no weird things" are used is a bad idea as well. There is a kind of breakage, but it is obvious and will be directly seen as either the include_path will be incomplete (app fails), an extension will be not be loaded, etc. Jani even suggested to add _fatal_ error. The lack of error messages was one of the main arguments against this feature. -- Pierre http://blog.thepimp.net | http://www.libgd.org