Downloads

Download tar.gz 9.79 KB
MD5: 7c49a030e154fabe66192acf6c40076c
SHA-1: 25b1d12bba8a3ce63ba83f3011a4f5a80bf93e3a
SHA-256: d533ca57072ee3a3a07f3cf9996a69fc042991d58d9559c1e54c6f822b433a36
Download zip 12.15 KB
MD5: 1a394b97c3cd4a9d93e47d4b8cf9e6e3
SHA-1: fce8222296f62bef97e2d9a562ebccac060b89b5
SHA-256: cc6fa10e321a5e6c991c8cbe85a4c0fb92a20412dae27c6e11e618d8da1a7fd0

Release notes

Fixes:
#1272234: variable_set() should be called only when needed.

Include

Installs and manages files and packages that need to reside on the PHP include_path.

Any file not found on the default include_path is added to the local repository, which is then added to the include_path on every page load. If an error occurs, the original include_path is restored and an error flag is set to prevent further damage.

This very simple module contains only one externally useful function:

include_check_path($path, $source = NULL, $type = 'file')

Verifies or installs a file or directory into the include repository.

Parameters

$path The target path to install, relative to the include file root. If $path is empty or ends in a trailing slash, it is interpreted as a directory name, and both $source and $type are ignored.

$source (optional) The file data, or a uri where it may be found. If unset or empty, then $path is a directory name, and $type is ignored.

$type (optional) A string which determines how $source is to be interpreted. Must be one of the following:

  • 'dir' : $path is a directory name, and $source is ignored.

  • 'file' : (Default) realpath($source) is a local file.

  • 'url' : $source is a string containing the file data.

Return value

TRUE if the file was found or installed; otherwise FALSE.

Created by: pillarsdotnet
Created on: 8 Sep 2011 at 01:47 UTC
Last updated: 8 Sep 2011 at 01:51 UTC
Bug fixes
Unsupported

Other releases