delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/12/04/12:05:43

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=wO96aNDe5xs4IVIxwk2cheHn5hElFrXlWl8tCgsbQGiXHa6j1YkwY
o9jq1LJrqNZUccClOqK86OFi4osu0bbY7fn80YR0fq2I8V0vuxk1ClV/RnV5phzO
kgXCs/wc9gEh6wOISo4uuyAjs3I7K/hbD6HfkFppO2Pa/LItuEtXas=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:mime-version:content-type:content-transfer-encoding; s=default;
bh=AUcjzV1hcdm5jbltAI35x9yxko0=; b=RnbDopUWmN1+kxCbdn9iRlMH0Xa9
XwNJ0vZ8pXz3g4UeCvX+ZfrynncyqtkAEjdRJKI4XPbcwfLtMsDM3r1FDxySs34U
s2vYpKqlEPFYIhsvhAJJ4XTUwUI3dNEipgsILoYNaTwA7iRUL0Eis+Q9+cCdCqVl
nGqKxrTI7hzcv5M=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=ATTN, H*F:D*yandex.ru, PHP, H*UA:Bat!
X-HELO: forward20m.cmail.yandex.net
Authentication-Results: smtp1j.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0
Date: Sun, 4 Dec 2016 20:01:19 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <422863647.20161204200119@yandex.ru>
To: All <cygwin AT cygwin DOT com>
Subject: [ATTN: PHP Cygwin maintainer] PHP mangling UNC paths
MIME-Version: 1.0
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019