Re: getting $PHP_SELF's basename

From: Date: Tue, 12 Feb 2002 21:53:48 +0000
Subject: Re: getting $PHP_SELF's basename
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-84471@lists.php.net to get a copy of this message
On Tue, 2002-02-12 at 13:32, Erik Price wrote: > > On Tuesday, February 12, 2002, at 04:26 PM, Lars Torben Wilson wrote: > > > echo basename($_SERVER['PHP_SELF']); > > > > http://www.php.net/basename > > > > Thank you Torben. Reading through the annotations on this manual entry, > it looks like I'd be safer using the home-built function after all! > Well, not really. But it seems that the optional 2nd parameter corrupts > the 1st parameter even if it is a predefined variable (which is what I'm > doing) -- which could have repercussions for $_SERVER['PHP_SELF'] down > the road, right? > > > Erik This was fixed on Jan 03 2002--the fix will be in 4.2.0. Until then you're fine unless you need that second param. :) http://bugs.php.net/bug.php?id=14832 Torben -- Torben Wilson <torben@php.net> http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506

« previous php.general (#84471) next »