public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [ATTN: PHP Cygwin maintainer] PHP mangling UNC paths
@ 2016-12-04 17:05 Andrey Repin
  0 siblings, 0 replies; only message in thread
From: Andrey Repin @ 2016-12-04 17:05 UTC (permalink / raw)
  To: All

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-04 17:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-04 17:05 [ATTN: PHP Cygwin maintainer] PHP mangling UNC paths Andrey Repin

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).