Bug dans PHP5.3.0 Pear.bat

11 08 2009

Dans un Projet PHP avec une plateforme Windows (dommage!! je sais), j’ai  suivi les indications qu’ il faut exécuter le go-pear.bat présent à la racine du dossier de PHP (soit c:\wamp\bin\php\php.5.3.0\ par défaut)

C’est ce que je fais, mais patatrac, je me trouve confronté à une, voire deux erreurs :

phar « C:\wamp\bin\php\php5.3.0\PEAR\go-pear.phar » does not have a signature

PHP Warning:  require_once(phar://go-pear.phar/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.phar/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

Grâce à Google , j’ai trouvé la solution(Ce fût difficile, raison pour laquelle je poste ce billet qui peut être utile à d’autres) :

Modifier directement votre php.ini, en cherchant la directive phar.require_hash, la décommenter et lui donner la valeur Off.


Actions

Information

23 responses

27 08 2009
Jerome

Merci beaucoup pour ta solution ! Ca marche super bien chez moi!

17 09 2009
Maz

Merci pour l’astuce, grâce à google et toi, j’ai trouvé la solution en 5secondes 🙂

17 10 2009
phil

Merci bcp pour cette contribution

25 10 2009
Pear: “go-pear.phar” Does Not Have a Signature | Matt Refghi's Blog

[…] You should no longer encounter the errors messages. Make sure to check out Latyr's original post on his blog. […]

31 10 2009
Matt Refghi

Excellent – merci beaucoup pour la solution! 🙂

7 11 2009
mael

un grand Merci pour la solution!

11 11 2009
Titie

je te remercie pour ton aide

11 12 2009
r19

vrt un grand merci mon ami

17 12 2009
Shapu

Grand merci !!!

14 01 2010
ML lache un com

Merci pour ton aide !

9 02 2010
Ouled Sahel

Je vous remercie. Vous m’avez aidé largement
Je vous remercie encore une fois…..

9 02 2010
piloutchat

merci, franchement bien merci !

5 03 2010
galavard

et bien comme le disent les messages plus haut, simplement un Grand merci !!!

8 03 2010
suz

merci pour ton aide

25 10 2010
Heidy

Et encore un merci !

18 02 2011
sbg

merci énormément pour votre aide!

5 03 2011
Gabe

Thanks! Quick and easy solution.

11 03 2011
malika

thanks a lot

7 04 2011
Guinch

Merci bcp!Enfin!!

29 05 2011
oussama

remarque: si vous utilisez WampSERVER il faut éditer PHP.ini manuellement en allant à C:\wamp\bin\php\php5.3.0 (dans mon cas) et ne pas vous servir de l’icône de notification de Wamp.

15 06 2011
Aaron5

Merci ca marche niquel!

7 09 2011
infoestadio

Gracias por tu desinteresada ayuda
Pedro

9 05 2014
Khalki Ichrak

bravo

Laisser un commentaire