This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ATTN: PHP Cygwin maintainer] PHP mangling UNC paths


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]