Re: [PHP4BETA] 'use' keyword

From: Date: Thu, 02 Dec 1999 11:11:04 +0000
Subject: Re: [PHP4BETA] 'use' keyword
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-7236@lists.php.net to get a copy of this message
On Thu, 2 Dec 1999 rasmus@php.net wrote: > > 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? > > Yeah, I think that is what I would expect. Symbolic links might be > another issue. We might want to follow any symbolic links and use the end > point. I would expect it in mosc cases, but not always. Let assume I try to write portable and relocatable package, so I always use("../inc/file.inc"), and in another place I want ti check if it is included. With absolute path I must know the base of the system then, because there is no "../inc/file" in $USED_PACKAGES. How about additional get_used_packages_absolute() or conditional parameter like get_used_packages($relative=0)? Michal -- _/ _/ _/_/_/ ----- Michal Kolodziejczyk, miko@wp.pl ----- _/ _/ _/ _/ _/ Wirtualna Polska SA http://www.wp.pl _/_/_/_/ _/_/_/ ul. Uphagena 2, 80-237 Gdansk, tel/fax. (58) 3455545 _/ _/ _/ --------==* Moja WP: http://moja.wp.pl *==----------

« previous php.version4 (#7236) next »