Re: [PHP4BETA] 'use' keyword

From: Date: Thu, 02 Dec 1999 05:46:08 +0000
Subject: Re: [PHP4BETA] 'use' keyword
References: 1 2 3 4 5 6 7  Groups: php.version4 
Request: Send a blank email to php-version4+get-7228@lists.php.net to get a copy of this message
At 07:44 AM 12/2/99 +0200, Andi Gutmans wrote: >At 04:11 PM 12/1/99 -0600, Andrei Zmievski wrote: >>On Thu, 02 Dec 1999, Zeev Suraski wrote: >> > I thought he meant that as in pseudo code, and not really keep it in that >> > $USED_PACKAGES variable. As a rule I think we should avoid using globals >> > at all, I think it opens an endless amount of possible security breaches, >> > and generally isn't a Good Thing. >> > How about a function, get_used_packages() that would return such an array? >> >>That looks fine to me. > >If someone does use "../foo.php" and .. is /www/php what would you expect >in the array? >$USED_PACKAGES["foo.php"] -> /www/php/foo.php? Yes, full path to the included file. -Andrei

« previous php.version4 (#7228) next »