Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40281 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4656 invoked from network); 5 Sep 2008 08:19:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2008 08:19:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=jani.taskinen@sci.fi; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jani.taskinen@sci.fi; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sci.fi from 63.208.196.178 cause and error) X-PHP-List-Original-Sender: jani.taskinen@sci.fi X-Host-Fingerprint: 63.208.196.178 mho-01-bos.mailhop.org Received: from [63.208.196.178] ([63.208.196.178:57632] helo=mho-01-bos.mailhop.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/22-27431-0ABE0C84 for ; Fri, 05 Sep 2008 04:19:45 -0400 Received: from a88-112-30-186.elisa-laajakaista.fi ([88.112.30.186] helo=localhost.localdomain) by mho-01-bos.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1KbWXW-000Cr7-6I; Fri, 05 Sep 2008 08:19:34 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 88.112.30.186 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/WFmjVA7Zihn9+Fmiw1J7Nsl6L4bKcY1U= Message-ID: <48C0EB92.40504@sci.fi> Date: Fri, 05 Sep 2008 11:19:30 +0300 Reply-To: jani.taskinen@iki.fi User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: Hannes Magnusson CC: jani.taskinen@iki.fi, =?ISO-8859-1?Q?Johannes_Schl=FCter?= , PHP Internals List , Pierre-Alain Joye References: <20080904190717.aaz97tz688oogc4c@horde.chinstrap.eu> <48C0488C.9090209@sci.fi> <7f3ed2c30809050034mdaa38d1i7477a5be5cdd694c@mail.gmail.com> In-Reply-To: <7f3ed2c30809050034mdaa38d1i7477a5be5cdd694c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: ini-parsing, double quotes, windows in 5.3 From: jani.taskinen@sci.fi (Jani Taskinen) Hannes Magnusson wrote: > On Thu, Sep 4, 2008 at 22:43, Jani Taskinen wrot= e: >> Johannes Schl=FCter kirjoitti: >>> Hi, >>> >>> now that we have a publicly available alpha on Windows we get the fir= st >>> feedback from Windows users. Within quite short time we got two bug >>> reports (#45992 #45994) about a change in the ini-parsing: >>> >>> With <=3D5.2 we allow >>> >>> include_path =3D "c:\foo\bar\" >> That SHOULD cause a syntax error of course. If it doesn't, >> it's the bug to fix. Allowing \" was a bug that was fixed to begin wit= h. >> If that causes a syntax error, it's quite easy to catch and fix by peo= ple >> upgrading to 5.3.. >=20 > php.ini-recommended, 5.3: > ;;;;;;;;;;;;;;;;;;;;;;;;; > ; Paths and Directories ; > ;;;;;;;;;;;;;;;;;;;;;;;;; >=20 > ; UNIX: "/path1:/path2" > ;include_path =3D ".:/php/includes" > ; > ; Windows: "\path1;\path2" > ;include_path =3D ".;c:\php\includes" >=20 >=20 > As you can see, Windows users are explicitly told to use foo\bar\ > inside double quotes. > This has been like this for years and is also documented in the manual.= >=20 > It looks to me that the old behavior was very intentional, logical or n= ot. Ini files are not documentation. And as / works also for winblows, that=20 should be used JUST for the sake of consistency anyway.. Anyway, the fix is quite easy: Only allow \" and no other escapes. And=20 doing "foo\" should cause a syntax error. --Jani