PHP 5.3 Windows and PEAR (go-pear.phar)

Some users have reported that the windows builds of PHP 5.3 are not able to open the shipped go-pear.phar file.

As a workaround, users can run the distributed phar with php -d phar.require_hash=0 go-pear.phar or download and use the http://pear.php.net/go-pear non-pharred version.

23 Responses to “PHP 5.3 Windows and PEAR (go-pear.phar)”

  1. Brett Bieber Says:

    Users can also use: php -d phar.require_hash=0 go-pear.phar

  2. PEAR Blog: PHP 5.3 Windows and PEAR (go-pear.phar) | Webs Developer Says:

    [...] PEAR blog has a quick note for users of PHP 5.3 and Windows: Some users have reported that the windows builds of PHP 5.3 are [...]

  3. PEAR Blog: PHP 5.3 Windows and PEAR (go-pear.phar) | DreamNest - Technology | Web | Net Says:

    [...] PEAR blog has a quick note for users of PHP 5.3 and Windows: Some users have reported that the windows builds of PHP 5.3 are [...]

  4. Sudhir Says:

    go-pear.phar file is available but php_phar.dll extension is missing due to that unable to download PEAR libraries

  5. Brian Whalley Says:

    Users can also use: php -d phar.require_hash=0 go-pear.phar

    oh no we can’t!!!

    C:\php>php -d phar.require_hash=0 go-pear.phar
    PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\php\ext\php_exif.dll’ – The specified module could not be
    found.
    in Unknown on line 0
    PHP Warning: Module ‘bz2′ already loaded in Unknown on line 0
    PHP Warning: Module ‘curl’ already loaded in Unknown on line 0
    PHP Warning: Module ‘fileinfo’ already loaded in Unknown on line 0
    PHP Warning: Module ‘gd’ already loaded in Unknown on line 0
    PHP Warning: Module ‘gettext’ already loaded in Unknown on line 0
    PHP Warning: Module ‘gmp’ already loaded in Unknown on line 0
    PHP Warning: Module ‘imap’ already loaded in Unknown on line 0
    PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
    PHP Warning: Module ‘ldap’ already loaded in Unknown on line 0
    PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0
    PHP Warning: Module ‘mysql’ already loaded in Unknown on line 0
    PHP Warning: Module ‘mysqli’ already loaded in Unknown on line 0
    PHP Warning: Module ‘openssl’ already loaded in Unknown on line 0
    PHP Warning: Module ‘pdo_mysql’ already loaded in Unknown on line 0
    PHP Warning: Module ‘PDO_ODBC’ already loaded in Unknown on line 0
    PHP Warning: Module ‘pdo_sqlite’ already loaded in Unknown on line 0
    PHP Warning: Module ‘pgsql’ already loaded in Unknown on line 0
    PHP Warning: Module ’soap’ already loaded in Unknown on line 0
    PHP Warning: Module ’sockets’ already loaded in Unknown on line 0
    PHP Warning: Module ’sqlite3′ already loaded in Unknown on line 0
    PHP Warning: Module ‘tidy’ already loaded in Unknown on line 0
    PHP Warning: Module ‘xmlrpc’ already loaded in Unknown on line 0
    PHP Warning: Module ‘xsl’ already loaded in Unknown on line 0
    Could not open input file: go-pear.phar

    C:\php>

  6. Behzad Says:

    It doesn’t worked for me!
    it said:
    phar “C:\php\go-pear.phar” does not have a have signaturePHP warning: require_once(phar://go-pear.phar/index.php): failed to open stream: phar “C:\php\go-pear.phar” does not have a have signature in C:\php\go-pear.phar on line 1236

  7. Todd Says:

    Just downloaded and installed PHP 5.3 (VC9). I don’t see go-pear anywhere in the PHP install folder.

    Am I missing something?

    Todd

  8. Mike Says:

    Brett, that is already exactly what the announcement said?

    I reinstalled xampp to have to latest pear-version, but I have big problems using the phar file. I have no idea where to use it for so far, but I really dont understand how this:
    php -d phar.require_hash=0 go-pear.phar
    has to be used or typed in a command line. I already tried to figure out on a forum, so far wiithout succes.
    Php is invalid command I get all the time. Where the hell do I have to type this piece of code to be executed??
    Thank you

  9. PNowicki Says:

    When using the non-pharred version in the link, don’t just save the page to a .php file and try to run it. You’ll get some mis-converted characters and HTML header stuff the messes up the file. Just select and copy the text shown on the web page to an empty Notepad file and provide the .php extension. Then open this from a browser link on your local web server. As a newbie, it took me a couple tries to figure this out.

  10. Vinnie Says:

    I still get errors when trying to install even after using the new go-pear above

    C:\php5>pecl install apc
    downloading APC-3.0.19.tgz …
    Starting to download APC-3.0.19.tgz (115,735 bytes)
    ….done: 115,735 bytes
    47 source files, building
    WARNING: php_bin c:\php5\php.exe appears to have a suffix 5\php.exe, but config
    variable php_suffix does not match
    running: msdev APC.dsp /MAKE “APC – Release”
    ERROR: Did not understand the completion status returned from msdev.exe.

  11. Mujahid Says:

    how does this work? where do I do this?

    php -d phar.require_hash=0 go-pear.phar

  12. Michael Moore Says:

    what a dumb run around to get pear installed on my windows xp machine. My webhost using C-Panel has a slick interface which puts the required files in the home php directory. I just wanted to double check what files are unpacked on the latest version compared to what is on the webhost compared to the sample code on yet another website. I know asking for an msi file is asking a lot, but the build behind the msi file derives from an xml document.

  13. Pablo Says:

    php -d phar.require_hash=0 go-pear.phar

    Warning: rename(C:\Program Files\PHP\PEAR\tmp\PDO_MYSQL\.tmpphp_pdo_mysql_sqlstate.h,C:\Program Files\PHP\PEAR\tmp\PDO_MYSQL\php_pdo_mysql_sqlstate.h): File exists in C:\Program Files\PHP\PEAR\PEAR\Installer.php on line 6797 source files, building WARNING: php_bin C:\Program Files\PHP\.\php.exe appears to have a suffix .exe, but config variable php_suffix does not match ERROR: The DSP PDO_MYSQL.dsp does not exist.

  14. Theo Chakkapark Says:

    It’s not working for me either. Tried using a normal go-pear copy and paste, and the actual .phar file in the php 5.3 distro. Get signature errors for the phar package, and deprecation issues with the go-pear link.

  15. James Says:

    X=your php folder drive letter
    you must have your X:\Php folder in your path and you must open a command prompt and navigate to X:\Php\pear and execute the command from there!

  16. Alberto Saavedra Says:

    After having a really hard time, I figured it out.
    I am using WAMPSERVER2.0, by default pear is not installed, and when you try to install it via the go-pear.bat , you will get this error:

    phar “C:\wamp\bin\php\php5.3.0\PEAR\go-pear.phar” does not have a signaturePHP W
    arning: require_once(phar://go-pear.phar/index.php): failed to open stream: pha
    r 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: pha
    r 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 . . .

    To avoid this what you have to do is this:

    -open a command prompt (cmd.exe)
    -go to the folder where the go-pear.phar is (cd C:\wamp\bin\php\php5.3.0\PEAR).
    -then type:
    php -d phar.require_hash=0 go-pear.phar
    3-Follow the straight-forward instructions and you are done!!!

    NOTE: the php directory has to be in the PATH environment variable.

    Good Luck

  17. Randy Says:

    Thank you Alberto!

  18. nomac Says:

    It looks like Pear is installed well but when I try to using it, with pear_frontend_web, got following:

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 650

    Any ideas?

  19. nomac Says:

    It looks like Pear is good installed (Vista, Wamp2.0i) but when I try to connect the PEAR_Frontend_Web I’ve getting following error(s):

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 650

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 697

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 757

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 786

    … etc

    Somebody an idea?

    Thanks

  20. Paul Says:

    If you’ve previously installed PEAR on your Windows PC, don’t forget to remove your PEAR environment variables under Control Panel -> System -> Advanced -> Environment Variables then reboot your PC.

  21. tj Says:

    Just wanted to let you guys know with windows vista, wampserver2, php version 5.3.0. i had to go into my PEAR folder and cut the go-pear.phar out of it and paste it on the php5.3.0 folder and run

    php -d phar.require_hash=0 go-pear.phar

    because i kept getting that ‘php’ on the command line was not recognized.

    all is well now :)

  22. Andi Says:

    Windows Installer used?
    - You need to download the Zip Package and extract go-pear.bat as well as the folder PEAR/ including the file go-pear.phar
    (You will need a foldner named extras, while your extracting the other stuff just grab the empty folder extras provided in the ZIP file – for convenience. We windows guys are lazy bastards after all LOL)

    Mike:
    - If php is an unknown command, you dont have PHP loaded in your environment. Fix that by adding the path to your php folder to the windows environt variables path. While you are at it check if the environt variable PHPRC exists. It should also hold the path to your php folder. You need to re-logon to Windows for this to take effect. Test by opening a cmd window and entering php -v. The cmd window should respond the php version…

    A couple of the windows guys are asking what to do with the line:
    php -d phar.require_hash=0 go-pear.phar
    Actually, that scares me. But I remember me being a newbie a few years back – so here goes: open go-pear.bat in notepad, put a rem before the php command that is in it and copy the line of code from here into it. Save it… go-pear.bat then will look something like this:
    —————————-
    @ECHO OFF
    set PHP_BIN=php.exe
    rem %PHP_BIN% -d output_buffering=0 PEAR\go-pear.phar
    php -d phar.require_hash=0 PEAR\go-pear.phar
    pause
    —————————-

    Double click it after you saved it (no, not the white space in the editor… close notepad and double click go-pear.bat in the folder – *ggg* – sorry, I needed that) and off you go.

  23. mivtech Says:

    Thank Alberto Saavedra,
    that was work succesfully..

Leave a Reply