php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35328 go-pear fails on Win32
Submitted: 2005-11-22 13:02 UTC Modified: 2005-11-28 18:10 UTC
Votes:23
Avg. Score:4.9 ± 0.3
Reproduced:23 of 23 (100.0%)
Same Version:17 (73.9%)
Same OS:19 (82.6%)
From: nohn@php.net Assigned: cellog (profile)
Status: Closed Package: *General Issues
PHP Version: 5.1.0 OS: win32
Private report: No CVE-ID: None
 [2005-11-22 13:02 UTC] nohn@php.net
Description:
------------
go-pear fails with 5.1.0RC6 on Win32

Reproduce code:
---------------
> go-pear.bat

Expected result:
----------------
PEAR gets installed

Actual result:
--------------
C:\wamp\php>go-pear

Are you installing a system-wide PEAR or a local copy?
(system|local) [system] :

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation base ($prefix)   : C:\wamp\php
 2. Binaries directory            : C:\wamp\php
 3. PHP code directory ($php_dir) : C:\wamp\php\pear
 4. Documentation directory       : C:\wamp\php\pear\docs
 5. Data directory                : C:\wamp\php\pear\data
 6. Tests directory               : C:\wamp\php\pear\tests
 7. Name of configuration file    : C:\WINDOWS\pear.ini
 8. Path to CLI php.exe           : C:\wamp\php\.

1-8, 'all' or Enter to continue:
Beginning install...
Configuration written to C:\WINDOWS\pear.ini...
Initialized registry...
Preparing to install...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.1.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.4.3.tar...
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update p
ear.php.net" to update
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
install ok: channel://pear.php.net/Archive_Tar-1.3.1
install ok: channel://pear.php.net/Console_Getopt-1.2

Warning: PEAR_Installer_Role::factory(PEAR/Installer/Role/Php.php): failed to op
en stream: Invalid argument in phar://go-pear.phar/PEAR/Installer/Role.php on li
ne 80

Fatal error: PEAR_Installer_Role::factory(): Failed opening required 'PEAR/Insta
ller/Role/Php.php' (include_path='.;C:\php5\pear') in phar://go-pear.phar/PEAR/I
nstaller/Role.php on line 80


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-23 07:44 UTC] cellog@php.net
please try a snapshot, or grab http://pear.php.net/go-pear.phar directly and use that with RC6
 [2005-11-24 10:25 UTC] nohn@php.net
Also happens with php5.1-win32-200511231930:

C:\wamp\php>php -v
PHP 5.1.0RC7-dev (cli) (built: Nov 23 2005 20:23:38)
Copyright (c) 1997-2005 The PHP Group
Zend Engine v2.1.0-dev, Copyright (c) 1998-2005 Zend Technologies

C:\wamp\php>go-pear

Are you installing a system-wide PEAR or a local copy?
(system|local) [system] :

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation base ($prefix)   : C:\wamp\php
 2. Binaries directory            : C:\wamp\php
 3. PHP code directory ($php_dir) : C:\wamp\php\pear
 4. Documentation directory       : C:\wamp\php\pear\docs
 5. Data directory                : C:\wamp\php\pear\data
 6. Tests directory               : C:\wamp\php\pear\tests
 7. Name of configuration file    : C:\WINDOWS\pear.ini
 8. Path to CLI php.exe           : C:\wamp\php\.

1-8, 'all' or Enter to continue:
Beginning install...
Configuration written to C:\WINDOWS\pear.ini...
Initialized registry...
Preparing to install...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.1.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.4.5.tar...
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
install ok: channel://pear.php.net/Archive_Tar-1.3.1
install ok: channel://pear.php.net/Console_Getopt-1.2

Warning: PEAR_Installer_Role::require_once(PEAR/Installer/Role/Php.php): failed
to open stream: Invalid argument in phar://go-pear.phar/PEAR/Installer/Role.php
on line 80

Fatal error: PEAR_Installer_Role::require_once(): Failed opening required 'PEAR/
Installer/Role/Php.php' (include_path='.;C:\php5\pear') in phar://go-pear.phar/P
EAR/Installer/Role.php on line 80
Dr?cken Sie eine beliebige Taste . . .
 [2005-11-24 10:29 UTC] sniper@php.net
Still no workie..
 [2005-11-25 04:05 UTC] mwhitlock at whitsoftdev dot com
This is still a problem in 200511242330.  I'd go in and fix it myself but I have no idea what to do with a .phar file, so I'm at the mercy of you developers.
 [2005-11-25 16:00 UTC] taomyn at myway dot com
Latest release v5.1.0 has the same issue.
 [2005-11-25 19:42 UTC] michel dot zehnder at proact-it dot ch
Fails with released 5.1.0 on Win32, too.
 [2005-11-28 01:16 UTC] cellog@php.net
I've got the problem, and it will be fixed pretty soon, then I close this
 [2005-11-28 01:43 UTC] cellog@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

when you do this, please grab go-pear.phar directly from http://pear.php.net/go-pear.phar - and please do this no sooner than 1 hour after this message, as pear.php.net is synced once per hour with cvs
 [2005-11-28 03:17 UTC] chris at lodesys dot com
Just tried http://snaps.php.net/win32/php5-win32-latest.zip and go-pear.phar from http://pear.php.net/go-pear.phar.  Still failing.
 [2005-11-28 05:16 UTC] cellog@php.net
Thanks for your patience.  I've tried in vain to reproduce this with the current go-pear.phar, so I would like you to please verify:

php -r "echo md5_file('go-pear.phar');"

should be:

ad41e53e594b7197c7a81e72e14be31a
 [2005-11-28 06:26 UTC] maratd at gmail dot com
That is the exact MD5 I have and it does not work. I have all the paths set in Windows and in php.ini

Does not work as described above. Just for reference I'm on Windows 2003 Server, but that shouldn't make a dif.

- Marat
 [2005-11-28 07:30 UTC] cellog@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

extensive research has resulted in discovery of the source of the problem.  Please try again with http://pear.php.net/go-pear.phar or CVS version of go-pear.phar (cvs.php.net pearweb/public_html/go-pear.phar), which should have md5sum of

d278e13f4928445bcead3ec5fa769154
 [2005-11-28 17:14 UTC] vanek at acd dot net
This new go-pear.phar and php5 zip file fixed the problem for me. Thanks. 

I got 8 or so warnings about not being able to parse my timezone (TZ=EST5EDT4,M4.1.0/2,M10.5.0/2), but I can live with these. When I reset TZ to just 'EST' php stops giving me these warnings.



If anybody is interested, I've included the warning messages:




Notice: date() [/phpmanual/function.date.html]: Timezone setting (date.timezone) or TZ environment variable contains an unknown timezone in
phar://go-pear.phar/PEAR/Registry.php on line 881
</font><font color=ff0000>
Notice: date() [/phpmanual/function.date.html]: Timezone setting (date.timezone) or TZ environment variable contains an unknown timezone in
phar://go-pear.phar/PEAR/Registry.php on line 881
</font><font color=ff0000>
Notice: date() [/phpmanual/function.date.html]: Timezone setting (date.timezone) or TZ environment variable contains an unknown timezone in
phar://go-pear.phar/PEAR/Registry.php on line 881
</font>Configuration written to c:\local\php\pear\pear.ini...
Initialized registry...
Preparing to install...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.1.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.4.5.tar...
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
<font color=ff0000>
Notice: strtotime() [/phpmanual/function.strtotime.html]: Timezone setting (date.timezone) or TZ environment variable contains an unknown ti
mezone in phar://go-pear.phar/PEAR/Validate.php on line 479
</font>pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
<font color=ff0000>
Notice: strtotime() [/phpmanual/function.strtotime.html]: Timezone setting (date.timezone) or TZ environment variable contains an unknown ti
mezone in phar://go-pear.phar/PEAR/Validate.php on line 447
</font>install ok: channel://pear.php.net/Archive_Tar-1.3.1
<font color=ff0000>
Notice: strtotime() [/phpmanual/function.strtotime.html]: Timezone setting (date.timezone) or TZ environment variable contains an unknown ti
mezone in phar://go-pear.phar/PEAR/Validate.php on line 447
</font>install ok: channel://pear.php.net/Console_Getopt-1.2
<font color=ff0000>
Notice: strtotime() [/phpmanual/function.strtotime.html]: Timezone setting (date.timezone) or TZ environment variable contains an unknown ti
mezone in phar://go-pear.phar/PEAR/Validate.php on line 447
</font><font color=ff0000>
Notice: strtotime() [/phpmanual/function.strtotime.html]: Timezone setting (date.timezone) or TZ environment variable contains an unknown ti
mezone in phar://go-pear.phar/PEAR/Validate.php on line 479
</font>install ok: channel://pear.php.net/PEAR-1.4.5
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
To install use "pear install PEAR#featurename"

******************************************************************************
WARNING!  The include_path defined in the currently used php.ini does not
contain the PEAR PHP directory you just specified:
 [2005-11-28 18:10 UTC] cellog@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

whew :)

I think the timezone error is legit, but you should report it as a separate bug with extreme detail so that Derick/Pierre can see if it should be auto-detecting it or whether it is bogus
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 07:01:32 2025 UTC