etsy/incpath

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

=== 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 ===


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.