Das Thema ist erledigt. Für alle, die das gleiche Problem haben, hier eine Lösung (sie geht davon aus, dass der Projektpfad variabel entsprechend der Installation in einer Konstanten abgelegt ist, hier: "PathToProject"):
(1) Im Projekt ein eigenes Verzeichnis für PEAR anlegen.
(2) Die benötigten Klassenbibliotheken mit den entsprechenden Versionen hineinkopieren.
(3) In einem config-file folgenden Code einfügen:
Snippet starts here
------------------------
// Set local PEAR-path
$strOS = strtoupper(PHP_OS); // OS PHP is running on
$strPath = ''; // Windows: PathToProject - slashes removed with backslashes
/**
* Get the OS PHP is running on
* This is important because windows wants backslashes and a semi-colon within the include_path
* Linux / Unix are taking slashes and a double-point instead
*/
if (substr($strOS, 0, 3) == 'WIN')
{
$strPath = str_replace('/', '\\', $globalCfgPathToProject) . '\pear_loc';
ini_set('include_path', $strPath . ';' . ini_get('include_path'));
}
else
{
ini_set('include_path', $globalCfgPathToProject . '/pear_loc:' . ini_get('include_path'));
}


LinkBack URL
About LinkBacks
Zitieren