public/index.php
set_include_path(implode(PATH_SEPARATOR, array(
dirname(dirname(__FILE__)) . '/library',
get_include_path(),
)));
configs/application.ini
includePaths.library = APPLICATION_PATH "/../library"
結果として
print get_include_path();
// prints %localpath%/application/../library:%localpath%/library
ini から「includePaths.library」をドロップすると、./zf (Zend_Tool) が失敗します。index.php にドロップすると、ブートストラップに失敗します。
この重複を正しく防ぐ方法は?