Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51537 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94252 invoked from network); 26 Feb 2011 13:11:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Feb 2011 13:11:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=carsten_sttgt@gmx.de; sender-id=fail Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.12 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.12 lo.gmane.org Linux 2.6 Received: from [80.91.229.12] ([80.91.229.12:38938] helo=lo.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/F0-23292-1FBF86D4 for ; Sat, 26 Feb 2011 08:11:15 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PtJvS-0008R7-8L for internals@lists.php.net; Sat, 26 Feb 2011 14:11:10 +0100 Received: from dslb-178-007-220-233.pools.arcor-ip.net ([178.7.220.233]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Feb 2011 14:11:10 +0100 Received: from carsten_sttgt by dslb-178-007-220-233.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Feb 2011 14:11:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Sat, 26 Feb 2011 14:11:08 +0100 Lines: 36 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: dslb-178-007-220-233.pools.arcor-ip.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 X-Antivirus: avast! (VPS 110226-0, 26.02.2011), Outbound message X-Antivirus-Status: Clean Subject: Problem with tsrm_realpath_r on Windows From: carsten_sttgt@gmx.de (Carsten Wiedmann) Hello list, at the moment I'm having a problem with most filesystem functions (because they are using tsrm_realpath_r internally) and a special situation. Steps to reproduce: | md test1 | mklink /j test test1 | icacls test /deny *S-1-1-0:(rd) at this point I can't create/write to a file in test: | php -r "file_put_contents('test/test.txt', 'test');" | | Warning: file_put_contents(test\test.txt): failed to open stream: | No such file or directory in Command line code on line 1 even this should be possible. Also I can't use realpath in this dir (You remember this Pierre? ;-) ): | cd test | php -r "var_dump(realpath('.'));" | bool(false) even this should also be possible. BTW: getcwd() is working in this dir. Well, if I change tsrm_realpath_r in tsrm_virtual_cwd.c (line ~863 / php5.3.5) from: | hLink = CreateFile(path, GENERIC_READ, ... to | hLink = CreateFile(path, 0, ... it's working as expected. But maybe there is another good reason to use GENERIC_READ at this point... Regards, Carsten