Name: incpath
Owner: Etsy, Inc.
Description: PHP extension to support atomic deploys
Created: 2013-06-28 15:50:59.0
Updated: 2018-01-15 12:57:16.0
Pushed: 2015-03-24 15:41:01.0
Homepage: null
Size: 107
Language: C
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
=== Introduction ===
incpath is a PHP extension to “resolve” a portion of include_path set in PHP's configuration INI files.
There are 3 configuration values:
incpath is intended to be used for atomic changes to a large, deployed PHP application in conjunction with mod_realdoc. Usually such an application has 2 deploy locations: one active and the other inactive. A symlink to the active one is referenced in the DOCUMENT_ROOT in the web server's configuration, and in PHP's include_path.
By hooking in before any actual PHP code executes, incpath “resolves” the symlink exactly once, and all subsequent users of include_path (like require/require_once/include/include_once) never have to resolve it again, thereby ensuring the entire request references code in only one location.
=== Installation ===