This is the mail archive of the
cygwin
mailing list for the Cygwin project.
[ATTN: PHP Cygwin maintainer] PHP mangling UNC paths
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: All <cygwin at cygwin dot com>
- Date: Sun, 4 Dec 2016 20:01:19 +0300
- Subject: [ATTN: PHP Cygwin maintainer] PHP mangling UNC paths
- Authentication-results: sourceware.org; auth=none
- Authentication-results: smtp1j.mail.yandex.net; dkim=pass header.i=@yandex.ru
- Reply-to: cygwin at cygwin dot com
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