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.
July 1st, 2009 at 06:53
Users can also use: php -d phar.require_hash=0 go-pear.phar
July 3rd, 2009 at 03:01
[...] 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 [...]
July 3rd, 2009 at 06:00
[...] 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 [...]
July 14th, 2009 at 07:24
go-pear.phar file is available but php_phar.dll extension is missing due to that unable to download PEAR libraries
July 15th, 2009 at 04:23
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>
July 17th, 2009 at 07:26
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
July 18th, 2009 at 07:31
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
July 23rd, 2009 at 04:58
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
July 24th, 2009 at 10:43
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.
July 28th, 2009 at 04:04
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.
July 28th, 2009 at 04:34
how does this work? where do I do this?
php -d phar.require_hash=0 go-pear.phar
July 31st, 2009 at 02:03
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.
August 4th, 2009 at 06:53
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.
August 4th, 2009 at 04:57
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.
August 6th, 2009 at 11:26
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!
September 9th, 2009 at 02:36
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
October 1st, 2009 at 01:31
Thank you Alberto!
October 14th, 2009 at 10:48
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?
October 15th, 2009 at 08:49
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
October 22nd, 2009 at 09:30
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.
November 10th, 2009 at 06:03
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
November 11th, 2009 at 03:20
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.
November 16th, 2009 at 10:02
Thank Alberto Saavedra,
that was work succesfully..