Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51538 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16674 invoked from network); 26 Feb 2011 16:51:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Feb 2011 16:51:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:59670] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/01-06596-E9F296D4 for ; Sat, 26 Feb 2011 11:51:42 -0500 Received: by bwz13 with SMTP id 13so2943767bwz.29 for ; Sat, 26 Feb 2011 08:51:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=eE1GtvHxI2+6ujvQ0E2sQ8BE7+o5vrbjfb46USR7zOk=; b=bh6fGvKozWu13hW1ccQ7tN8JuYEj5Y1FwfBQt1FV+4QrEjW2bkIh38zQ6oUYEUdrv4 G2uFacFbl5T1uIm6egyRdwkgymPOqM7aIn+hVvNrpKB0YJ64sTPVug3WAZHskVKpi3nl dIzZ8pVZfRhQ5MUk3bB2aOucn6DZuRrtMPDTE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=wnHGCYTygO9Z05errSWl/tav93oaJScgkOTGG/amKNLt5D1E1woHle1tRPOQZa9RHt wfWDU4aoyJ2yJP1fJoDxrKUK5LE8+z8AcpM5W5rxgJbNzF4CXEALWg+wX2GJ9xKV0u2S Hkl0XZBeWCxNJh0oZ2OdnTXJyzk7UQeKWHFUI= MIME-Version: 1.0 Received: by 10.204.51.11 with SMTP id b11mr3195780bkg.129.1298739098527; Sat, 26 Feb 2011 08:51:38 -0800 (PST) Received: by 10.204.55.17 with HTTP; Sat, 26 Feb 2011 08:51:38 -0800 (PST) In-Reply-To: References: Date: Sat, 26 Feb 2011 17:51:38 +0100 Message-ID: To: Carsten Wiedmann Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Problem with tsrm_realpath_r on Windows From: pierre.php@gmail.com (Pierre Joye) hi, Please open a bug report at bugs.php.net with the test case(s). Cheers, On Sat, Feb 26, 2011 at 2:11 PM, Carsten Wiedmann wr= ote: > Hello list, > > at the moment I'm having a problem with most filesystem functions (becaus= e > they are using =A0tsrm_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 =3D CreateFile(path, GENERIC_READ, ... > to > | hLink =3D CreateFile(path, 0, ... > it's working as expected. But maybe there is another good reason to use > GENERIC_READ at this point... > > Regards, > Carsten > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org