Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98683 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59392 invoked from network); 30 Mar 2017 15:16:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Mar 2017 15:16:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=derokorian@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=derokorian@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.50 as permitted sender) X-PHP-List-Original-Sender: derokorian@gmail.com X-Host-Fingerprint: 209.85.218.50 mail-oi0-f50.google.com Received: from [209.85.218.50] ([209.85.218.50:36714] helo=mail-oi0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/09-10047-E312DD85 for ; Thu, 30 Mar 2017 10:16:16 -0500 Received: by mail-oi0-f50.google.com with SMTP id r203so34168040oib.3 for ; Thu, 30 Mar 2017 08:16:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qkJDvOFAaRNk3Qzauz1mXFu2RpeHaS4mwKeEgkMfJok=; b=asshKDmFq4vgn39899Tnlq4AG0SppJN7uTXoP+gFRvH9WF9vqsJf660olBs/PEk/iV gekv8MpuBnDM8plCi2+t1ZXPQizZCBwILayIuCPdNajdDeXiCqpvaPRdrZysbQuLhQGm LWu5ve2QP+pfZwLxeOhptBcPcOIMzYDrsnw9v02VOHFxUfTmx3tH+2KAIelHDzU88Gg4 8Kc/hS5SFuUuIlCa5cSwpBDqWbmphN87uoEsr+DDHRENjbKTeB+OKtRgQmBNPKfZpQXt /Nk2Hx4xfrh7sZpyypNwZsvaTxBcQLDdbO1gu6J+JsJvOCWrjntTkvgsIC/PompB4E2r ZGJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qkJDvOFAaRNk3Qzauz1mXFu2RpeHaS4mwKeEgkMfJok=; b=hU+VCjL2tjQoL9BpQclTSMHKYGIPUJGgvjh9mK1VundyqWJTiLNzIUGIQix0iHeshN PZF5PAJsyvql8yjgh+01fL1Z5QVRMKJ5Td12VBuG9tNG9/zLkF0Wdg0bh4sf1+NRskI7 xZSBu0qqj5eeFUEtnsgs2Rm7rujGt7tApu786Uu19PDE6ZWHCFFphUf/ybs9swXX/hL6 OXL8P2DMoyaPSJC7bXYlkafQ8T7dB8WGodjEe0r1miU7EdcjiF/PBHGRCOjJRw3L8yo2 ovfR6ZuO9D6lv3u6F0sJcDDlWI1wP3dHG08STO1FL/L6a/2h7QzQ1ud8Rm8Cv0Ir3wA1 ERlA== X-Gm-Message-State: AFeK/H0Sf3gDF1lWLoI3Lp0vuqTSNFGwNWFuPHH+yIadv4BoCuRZpCRXdBLDgRLAieRUhRadowObqpGlnqtnQw== X-Received: by 10.157.36.226 with SMTP id z89mr120013ota.173.1490886971571; Thu, 30 Mar 2017 08:16:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.27.68 with HTTP; Thu, 30 Mar 2017 08:16:11 -0700 (PDT) In-Reply-To: <59B9EB30-72FB-4953-B532-8B15E574DA59@gmail.com> References: <59B9EB30-72FB-4953-B532-8B15E574DA59@gmail.com> Date: Thu, 30 Mar 2017 09:16:11 -0600 Message-ID: To: Rowan Collins Cc: Rasmus Schultz , PHP internals Content-Type: multipart/alternative; boundary=94eb2c04ffa4574438054bf42c48 Subject: Re: [PHP-DEV] Directory separators on Windows From: derokorian@gmail.com (Ryan Pallas) --94eb2c04ffa4574438054bf42c48 Content-Type: text/plain; charset=UTF-8 On Thu, Mar 30, 2017 at 8:05 AM, Rowan Collins wrote: > On 30 March 2017 14:25:02 BST, Rasmus Schultz wrote: > > >Returning backslashes on Windows seems rather unnecessary in the first > >place, since forward slashes work just fine? > > This may be true when using the paths within PHP, but is it true outside > of it? If your JSON file had been read in by a .net application, or used to > generate a DOS/NT batch file, wouldn't forward slashes there have been just > as broken as backslashes on a Linux box? > > In my experience, forward slashes work just fine in .NET 4.0+ (haven't ever used less than 4.0, so I won't claim to know), PowerShell and batch files. Command prompt deals with it just fine. > Sadly, I fear this is like trying to automate line ending conversion - the > more you try to avoid being platform-specific, the more awkward cases you > introduce. > I tend to agree. It's really not that hard to handle in the application itself, instead of relying on the language to perform some magic. We generally know that magic features aren't so great, so let's not go adding more. > > Regards, > > -- > Rowan Collins > [IMSoP] > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --94eb2c04ffa4574438054bf42c48--