From: Andrey Repin <anrdaemon@yandex.ru>
To: All <cygwin@cygwin.com>
Subject: [ATTN: PHP Cygwin maintainer] PHP mangling UNC paths
Date: Sun, 04 Dec 2016 17:05:00 -0000 [thread overview]
Message-ID: <422863647.20161204200119@yandex.ru> (raw)
Greetings, All!
Simple script to check
#!/usr/bin/env php
<?php
system('php -v');
system('php -r "die(__DIR__);"');
foreach([__DIR__, __FILE__] as $path)
printf("\n%s", $path);
What is more curious, calling php -r yield correct results.
$ ./php-cygwin-bug.php
PHP 7.0.13 (cli) (built: Nov 25 2016 00:20:08) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
//HOSTING.DARKDRAGON.LAN/wwwroot/cc-admin/admin
/HOSTING.DARKDRAGON.LAN/wwwroot/cc-admin/admin
/HOSTING.DARKDRAGON.LAN/wwwroot/cc-admin/admin/php-cygwin-bug.php
--
With best regards,
Andrey Repin
Sunday, December 4, 2016 19:46:40
Sorry for my terrible english...
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
reply other threads:[~2016-12-04 17:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=422863647.20161204200119@yandex.ru \
--to=anrdaemon@yandex.ru \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).