Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29806 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84576 invoked by uid 1010); 26 May 2007 14:09:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 84561 invoked from network); 26 May 2007 14:09:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 May 2007 14:09:02 -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=news@sea.gmane.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.2 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.5 (sometimes 2.4) (4) Received: from [80.91.229.2] ([80.91.229.2:48027] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 82/42-61477-97F38564 for ; Sat, 26 May 2007 10:08:59 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hrww7-0003kT-0L for internals@lists.php.net; Sat, 26 May 2007 16:08:03 +0200 Received: from dslb-084-057-128-127.pools.arcor-ip.net ([84.57.128.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 May 2007 16:08:02 +0200 Received: from carsten_sttgt by dslb-084-057-128-127.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 May 2007 16:08:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Sat, 26 May 2007 16:06:02 +0200 Lines: 43 Message-ID: Reply-To: "Carsten Wiedmann" Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-15"; reply-type=original Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: dslb-084-057-128-127.pools.arcor-ip.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Sender: news Subject: comment to Bug #41480 From: carsten_sttgt@gmx.de ("Carsten Wiedmann") Hello all, i know, your interests in bugs on Window is not very high... (see the zero answers to my mail about Bug #41408)... Now I have a comment to the Bug #41408 [1]. With this code: | $path1 = 'E:\\webroot\\'; | $path2 = 'E:\\webroot\\index.php'; | | var_dump(realpath($path1)); | var_dump(realpath($path2)); the actual result must be: | string(10) "E:\webroot" | string(20) "E:\webroot\index.php" (And I have this result on NT4/XP with PHP5.2.2. Can't reproduce the problem.) and not: | bool(false) | string(20) "E:\webroot\index.php" like the bug submitter have. So we can say: The actual result from the bug submitter is not the expected behavior (what "iliaa at php dot net" answers). Instead this must be a problem with bug submitters PHP installation. BTW: The expected behavior the bug submitter want is also wrong. Because a realpath() on a valid path (without filename) does not include the trailing slash. Regards, Carsten [1] http://bugs.php.net/bug.php?id=41480