je viens de découvrir WAMP qui me plait beaucoup, étant déjà utilisateur de EasyPHP ...
Par contre, j'ai un soucis avec les versions exécutables en ligne de commande de PHP.
Il y a php.exe, php-win.exe et php-cgi.exe, mais pour les trois j'ai les messages suivants lorsque j'essaie de les utiliser en ligne de commande (pour pear) :
PHP Warning: PHP Startup: <┴<: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: ╝X┤: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: îq<: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: ΣÉ<: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: LA<: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: Σa╖: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: ¼Q<: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: ÿh<: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: H¿╕: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: d7╗: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: ╝A<: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: LU?: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: ▄└┤: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: └I╡: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: ö²>: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: ─┬<: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20040412, debug=0, thread-safety=1 These options need to match in Unknown on line 0
Un problème avec les modules fournis, semble-t'il ...
cela est dû au fait que le fichier php.ini de wamp5 se trouve dans le repertoire apache.
Du coup, lorsque tu lances PHP en CGI (il ne tourne pas avec apache) , il va chercher son php.ini dans le repertoire par defaut : c:\windows
Il utilise donc un php.ini (et donc les modules) d'une autre installation (easyphp ou autre).
Le plus simple est de mettre une copie du fichier php.ini (qui se trouve dans le rep apache) dans le repertoire php de wamp afin qu'il soit utilisé à la place.