Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29400 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89159 invoked by uid 1010); 11 May 2007 04:40:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89144 invoked from network); 11 May 2007 04:40:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2007 04:40:03 -0000 Authentication-Results: pb1.pair.com header.from=news@sea.gmane.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; 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:35462] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/85-20961-3A3F3464 for ; Fri, 11 May 2007 00:40:03 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HmMv8-0002yz-7c for internals@lists.php.net; Fri, 11 May 2007 06:39:58 +0200 Received: from dslb-084-057-157-109.pools.arcor-ip.net ([84.57.157.109]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 May 2007 06:39:58 +0200 Received: from carsten_sttgt by dslb-084-057-157-109.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 May 2007 06:39:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Fri, 11 May 2007 06:37:50 +0200 Lines: 25 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-157-109.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: Question about bug #41262 From: carsten_sttgt@gmx.de ("Carsten Wiedmann") Hi all, just a question why this [1] is not a bug? Well, we know why PHP is doing this, but IMHO that's not correct. As of my understanding this function just split a given path in parts. The given path parameter is complete independend from the local filesystem (or os?). It can also be the path componente of an (ftp) URI. So, why depends the return value in this one case on the local filesystem and without any info in the documentation? For example if I use the result of this function in a dynamic generated pdf file for a documentation. It's also not possible to have a correct root for an URI. I must not use the result for a following local file access. A "\" is definitely not the same as "/". ( var_dump('\\' == '/'); ;-) ) BTW: With dirname() you have the same behaviour. Regards, Carsten [1] http://bugs.php.net/bug.php?id=41262