Re: [PHP-DEV] get_included_files From: Joey Smith (joey <email protected>)
Date: 12/11/00

$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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>