PEAR yüklerken neden hata alıyorum?

2 Cevap php

I am trying to install PEAR for use with PHP. As i read on the installation instructions at http://pear.php.net/manual/en/installation.getting.php , I am supposed to run the file go-pear.bat which I have in my C:\wamp\bin\php\php5.3.0 directory. According to all the installation guides I have read, it should install and ask me a series of installation questions, but I am receiving the following error:

phar "C:\wamp\bin\php\php5.3.0\PEAR\go-pear.phar" does not have a signature PHP Warning: require_once(phar://go-pear.par/index.php): failed to open stream: phar error: invalid url or non-existent phar "phar://go-pear.phar/index.php" in C:\wamp\bin\php\php5.3.0\PEAR\go-pear.phar on line 1236

Warning: require_once(phar://go-pear.par/index.php): failed to open stream: phar error: invalid url or non-existent phar "phar://go-pear.phar/index.php" in C:\wamp\bin\php\php5.3.0\PEAR\go-pear.phar on line 1236 Press any key to continue...

Ben bu hatayı alıyorum neden emin değilim. Ben sadece son zamanlarda yeni WAMPServer yüklü.

2 Cevap

Belki this is sizin için ne arıyor.

İşte adımlar şunlardır:

1) Locate the "php.ini" file. In my case, I found it at this path:

C: \ wamp \ bin \ php \ php5.3.0 \ php.ini

Don't use the WAMP system tray icon to edit this file. It didn't work when I tried - you have to manually locate it.

2) kalın, aşağıdaki satırı bulun:

; http://php.net/phar.require-hash;phar.require%5Fhash = On ; http://php.net/phar.require-hash

; Phar.require_hash = Açık

3) Uncomment the ";phar.require_hash = On" line by removing the semi-colon.

"Off", "On" 4) Değişim.

; http://php.net/phar.require-hash

phar.require_hash = Kapalı

5) dosyayı kaydedin.

After I performed those steps, "go-pear.bat" began working normally again.

kullanarak php.ini olmadan başlamak gerekir:

PATH/TO/php.exe -d phar.require_hash=0 PATH/TO/go-pear.phar