ich vorhin die neuste Version von XAMPP installiert und wollte pear nutzen. Jedoch hat es am Anfang nicht geklappt, sodass ich die pear.bat aus
D:\xampp\php\tmp\PEAR-1.7.1\scripts
nach
D:\xampp\php
kopiert. Anschließend habe ich die Datei angepasst
REM Test to see if this is a raw pear.bat (uninstalled version)
SET TMPTMPTMPTMPT=@includ
SET PMTPMTPMT=%TMPTMPTMPTMPT%e_path@
FOR %%x IN ("D:\xampp\php\pear") DO (if %%x=="%PMTPMTPMT%" GOTO :NOTINSTALLED)
REM Check PEAR global ENV, set them if they do not exist
IF "%PHP_PEAR_INSTALL_DIR%"=="" SET "PHP_PEAR_INSTALL_DIR=D:\xampp\php\pear"
IF "%PHP_PEAR_BIN_DIR%"=="" SET "PHP_PEAR_BIN_DIR=D:\xampp\php"
IF "%PHP_PEAR_PHP_BIN%"=="" SET "PHP_PEAR_PHP_BIN=D:\xampp\php\.\php.exe"
GOTO :INSTALLED
Wenn ich nun in der Konsole pear ausführen will, so erhalte ich die Fehlermeldung
Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in D
:\xampp\php\PEAR\PEAR.php:775) in D:\xampp\php\PEAR\PEAR\PEAR.php on line 806
Weiß jemand wo der Fehler liegt und wie ich ein funktionierendes PEAR bekomme?
Gruß,
Apoll