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 <[EMAIL PROTECTED]>
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to