PHP 4.0 Bug #6078 Updated: Make get_included/required_files() work even if files do not end i .php

From: Date: Thu, 10 Aug 2000 20:54:48 +0000
Subject: PHP 4.0 Bug #6078 Updated: Make get_included/required_files() work even if files do not end i .php
Groups: php.dev 
Request: Send a blank email to php-dev+get-28389@lists.php.net to get a copy of this message
ID: 6078 User Update by: marten@jerbro.se Old-Status: Closed Status: Open Bug Type: Feature/Change Request Description: Make get_included/required_files() work even if files do not end i .php Sorry if my explanation was fuzzy. What i meant is this; in the snippet below get_included_files() returns an empty array because the required files do not end in .php. <? require_once('global.inc'); require_once('sess.class'); require_once('banner.class'); require_once('cache.class'); require_once('template.class'); var_dump(get_required_files()); ?> From the manual page for get_required_files(); "As of PHP 4.0.1pl2 this function assumes that the required_once files end in the extension '.php', other extensions do not work." Full Bug description available at: http://bugs.php.net/?id=6078

« previous php.dev (#28389) next »