Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 199912

Re: [PHP4BETA] 'use' keyword From: Stanislav Malyshev (stas <email protected>)
Date: 12/02/99

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.

This isn't going to cure the problem. You have hardlinks, symlinks, and
whatever abomination you can imagine with new filesystem on NT5, and
whatever you could have on other FSes. The problem is that you are trying
to use filename as an ID, while it isn't - you can have two different
filenames with one file (as for a file on Unix it's inode what is ID, not
a name), and different files with one package, and it would be still the
same package. Unless you explicitly mark is as a package (like Perl's
package keyword), you can't identify it, and no games with symlinks are
going to help. It would be just a kludge, which cures the symptoms,
keeping the disease intact.

-- 
Stanislav Malyshev   stas <email protected>          
+972-50-624945

-- 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>