Re: get_included_files

From: Date: Mon, 11 Dec 2000 17:52:50 +0000
Subject: Re: get_included_files
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-40876@lists.php.net to get a copy of this message
$pwd /home/joey $/usr/bin/php <?php include "Sybase.phc"; $a = get_included_files(); var_dump($a); ?> X-Powered-By: PHP/4.0.4RC3 Content-type: text/html array(1) { [0]=> string(29) "/usr/local/lib/php/Sybase.phc" } Looks like it works as requested using 4.0.4RC3... On Mon, 11 Dec 2000, Andi Gutmans wrote the following to Alex Black and...: > Only scripts that are include_once()'ed or require_once()'ed are added to > the included_files. > The reason include()/require() don't do that is because they don't check > the full path of the file and the hash to see if the file has been included > yet. Doing this would likely slow them down a bit. Maybe we should just put > the relative path in the Hash? > > Andi

« previous php.dev (#40876) next »