Adding comments about CAKE_CORE_INCLUDE_PATH.

Removing ini_set() blocks that don't need to exist.
This commit is contained in:
Mark Story 2011-07-31 15:26:43 -04:00 committed by mark_story
parent b362afee06
commit b45e8eb0cd
4 changed files with 8 additions and 6 deletions

View file

@ -53,6 +53,8 @@
* *
* For ease of development CakePHP uses PHP's include_path. If you * For ease of development CakePHP uses PHP's include_path. If you
* cannot modify your include_path set this value. * cannot modify your include_path set this value.
*
* Leaving this constant undefined will result in it being defined in Cake/bootstrap.php
*/ */
//define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib'); //define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');

View file

@ -50,6 +50,8 @@ ini_set('display_errors', 1);
* *
* For ease of development CakePHP uses PHP's include_path. If you * For ease of development CakePHP uses PHP's include_path. If you
* need to cannot modify your include_path, you can set this path. * need to cannot modify your include_path, you can set this path.
*
* Leaving this constant undefined will result in it being defined in Cake/bootstrap.php
*/ */
//define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib'); //define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');

View file

@ -53,6 +53,8 @@
* *
* For ease of development CakePHP uses PHP's include_path. If you * For ease of development CakePHP uses PHP's include_path. If you
* need to squeeze a bit more performance you can set this path. * need to squeeze a bit more performance you can set this path.
*
* Leaving this constant undefined will result in it being defined in Cake/bootstrap.php
*/ */
//define('CAKE_CORE_INCLUDE_PATH', __CAKE_PATH__); //define('CAKE_CORE_INCLUDE_PATH', __CAKE_PATH__);
@ -69,9 +71,6 @@
} }
if (!defined('CAKE_CORE_INCLUDE_PATH')) { if (!defined('CAKE_CORE_INCLUDE_PATH')) {
if (function_exists('ini_set')) {
ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
}
if (!include('Cake' . DS . 'bootstrap.php')) { if (!include('Cake' . DS . 'bootstrap.php')) {
$failed = true; $failed = true;
} }

View file

@ -50,6 +50,8 @@ ini_set('display_errors', 1);
* *
* For ease of development CakePHP uses PHP's include_path. If you * For ease of development CakePHP uses PHP's include_path. If you
* need to cannot modify your include_path, you can set this path. * need to cannot modify your include_path, you can set this path.
*
* Leaving this constant undefined will result in it being defined in Cake/bootstrap.php
*/ */
//define('CAKE_CORE_INCLUDE_PATH', __CAKE_PATH__); //define('CAKE_CORE_INCLUDE_PATH', __CAKE_PATH__);
@ -66,9 +68,6 @@ if (!defined('WWW_ROOT')) {
} }
if (!defined('CAKE_CORE_INCLUDE_PATH')) { if (!defined('CAKE_CORE_INCLUDE_PATH')) {
if (function_exists('ini_set')) {
ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
}
if (!include('Cake' . DS . 'bootstrap.php')) { if (!include('Cake' . DS . 'bootstrap.php')) {
$failed = true; $failed = true;
} }