php4-beta | 199912
Date: 12/02/99
- Next message: Stanislav Malyshev: "Re: [PHP4BETA] 'use' keyword"
- Previous message: Stig Bakken: "Re: [PHP4BETA] Does PEAR always install in /usr/local/lib"
- In reply to: rasmus <email protected>: "Re: [PHP4BETA] 'use' keyword"
- Next in thread: Stanislav Malyshev: "Re: [PHP4BETA] 'use' keyword"
- Reply: Stanislav Malyshev: "Re: [PHP4BETA] 'use' keyword"
- Reply: Stig Bakken: "Re: [PHP4BETA] 'use' keyword"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 2 Dec 1999 rasmus <email protected> 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 <email protected> ----- _/ _/ _/ _/ _/ Wirtualna Polska SA http://www.wp.pl _/_/_/_/ _/_/_/ ul. Uphagena 2, 80-237 Gdansk, tel/fax. (58) 3455545 _/ _/ _/ --------==* Moja WP: http://moja.wp.pl *==------------ PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Stanislav Malyshev: "Re: [PHP4BETA] 'use' keyword"
- Previous message: Stig Bakken: "Re: [PHP4BETA] Does PEAR always install in /usr/local/lib"
- In reply to: rasmus <email protected>: "Re: [PHP4BETA] 'use' keyword"
- Next in thread: Stanislav Malyshev: "Re: [PHP4BETA] 'use' keyword"
- Reply: Stanislav Malyshev: "Re: [PHP4BETA] 'use' keyword"
- Reply: Stig Bakken: "Re: [PHP4BETA] 'use' keyword"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

