Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98696 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10113 invoked from network); 31 Mar 2017 04:39:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Mar 2017 04:39:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.47 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.47 mail-vk0-f47.google.com Received: from [209.85.213.47] ([209.85.213.47:36032] helo=mail-vk0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/E2-13909-A7DDDD85 for ; Thu, 30 Mar 2017 23:39:22 -0500 Received: by mail-vk0-f47.google.com with SMTP id s68so78331054vke.3 for ; Thu, 30 Mar 2017 21:39:22 -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=kByV/pyFUD1n8iFIFYCjXvB7aBP4sndG76WA7EdbFZ8=; b=dhzSyXuJaKUoDgX62XE17wCMtv9rFFl/ezw7o13Zcf6+OtDVImlj4X1pKrVjC/vNrI KxjGyYhA6JxKqR/HLnOIKORiYVZh1bQjAy6rFWx6V4qfyoCLMD8tSxXZyTjPTTP/XbQt 9BgPqkDpB1e0fkOFmc7AXtcBt30blWBrY+QJBV6yaXB4PCKj+aUDl+mnvN93/X+Y4Lbs 2FzTlGBiKIPNDnIk+3WMwRP0ZEqzI69Q2wS3jsMuS6ZC4jTimz7HX7Cqu32YSN8t5OeO hRhrxgCNUHPnUmtdN9CTFh3+SZvrwp+wjmob6i9esbsM8HjPuay2B+vsIdF3Dz40aAd0 udfA== 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=kByV/pyFUD1n8iFIFYCjXvB7aBP4sndG76WA7EdbFZ8=; b=EUjjGJsbkZxU8ge4B6o8bkAJYObzTqUt1xth3KVTMRysG2N+WcBDDySr1mew9aN4aR rBsc8odLBTwdA9qgt3fc9cUL2WOMwyy/1o2J95R8N6eobVZIfoEU96cLwItWG678Ky2l 5FUpc4etlFokIE7/HvB/f3/28gArvW30nsgWA2B8/xpwnJU+5IGVK4XdsBchBbuGuA5/ Ynh/CuxIKejMdE+Lbw5EsCCTfdFZle0aJXgEzm5lkvg5WyUbL69A2Sv1muOWOEtQLDAW IXNnCg9tqNW3LvdqTsn/8/FfCPh0cPEggEcn87f54qJ1/WjgenxPUGDxrRwpPN5GkrNi pvPQ== X-Gm-Message-State: AFeK/H3IdKSBmypjHk/L8Gmg9SJaLb1sRJO20n9/VN4SBcysdu4fevaCYgn6wjJzzuEQy4v1scsmOJNr+KqvCA== X-Received: by 10.159.53.102 with SMTP id o93mr546580uao.76.1490935159715; Thu, 30 Mar 2017 21:39:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.91.84 with HTTP; Thu, 30 Mar 2017 21:39:17 -0700 (PDT) Received: by 10.176.91.84 with HTTP; Thu, 30 Mar 2017 21:39:17 -0700 (PDT) In-Reply-To: References: Date: Fri, 31 Mar 2017 11:39:17 +0700 Message-ID: To: Alex Sky Cc: Kris Craig , PHP internals , Rasmus Schultz , Sara Golemon Content-Type: multipart/alternative; boundary=94eb2c03f8f093fb12054bff646a Subject: Re: [PHP-DEV] Directory separators on Windows From: pierre.php@gmail.com (Pierre Joye) --94eb2c03f8f093fb12054bff646a Content-Type: text/plain; charset=UTF-8 On Mar 31, 2017 8:19 AM, "S.A.N" wrote: > Another option would be to create a function that converts all slashes in a > given input string to whatever the directory seperator should be on that > platform. This way, devs wouldn't have to deal with bulky aliases like > DIRECTORY_SEPERATOR cluttering up their code. > > For example: > > > print convert_seperators( '/some\directory/' ); > > ?> > > The above would output "/some/directory" on Linux and "\some\directory" on > Windows. +1 Can be used, for convert NAMESPACE to filepath in autoload )