Why am I receiving an error when installing PEAR?

后端 未结 2 2042
别跟我提以往
别跟我提以往 2021-02-08 05:53

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 fil

相关标签:
2条回答
  • 2021-02-08 06:18

    Maybe this is what you are looking for.

    Here are the steps:

    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) Find the following line, in bold:

    ; http://php.net/phar.require-hash;phar.require_hash = On ; http://php.net/phar.require-hash

    ;phar.require_hash = On

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

    4) Change "On" to "Off".

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

    phar.require_hash = Off

    5) Save the file.

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

    0 讨论(0)
  • 2021-02-08 06:26

    you should be able to start it without editing php.ini using :

    PATH/TO/php.exe -d phar.require_hash=0 PATH/TO/go-pear.phar
    
    0 讨论(0)
提交回复
热议问题