php-windows Digest 21 Jun 2009 22:21:05 -0000 Issue 3648

Topics (messages 29417 through 29420):

Re: problem with PEAR , windows platform , php 5.2.9-2 , IIS Version 6
        29417 by: Niel Archer
        29418 by: onemancrew
        29419 by: onemancrew
        29420 by: Niel Archer

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
> Hi
> 
> I encounter an issue with PEAR
> 
> some pre info regarding the environment:
> Windows Server 2003
> IIS6 (IIS Version 6)
> PHP Version is 5.2.9-2
> 
> I have installed PEAR on specific virtual directory (means that PEAR is 
> installed only on specific web site/specific domain)
> 
> I have installed the following packages of PEAR:
> 
> INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
> =========================================
> PACKAGE          VERSION STATE
> Archive_Tar      1.3.3   stable
> Console_Getopt   1.2.3   stable
> DB               1.7.13  stable
> DB_DataObject    1.8.10  stable
> Date             1.4.7   stable
> MDB2             2.4.1   stable
> PEAR             1.8.0   stable
> Structures_Graph 1.0.2   stable
> Validate         0.8.2   beta
> XML_Util         1.2.1   stable
> 
> So as you can see Validate package is installed and the version of it is 
> 0.8.2 and the state of it is beta
> 
> now lets talk about the issue.
> I am trying to install a new PEAR package and I encounter an issue.
> Now everytime that I try to install a new package then I get the following 
> error msg:
> 
> Fatal error: Class 'PEAR_Validate' not found in 
> D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR\PEAR\ChannelFile.php on 
> line 1514
> 
> So as it seems to me , after Validate package is installed , the 
> installation process is making some modification inside the file 
> ChannelFile.php
> 
> Those modification break PEAR
> 
> I did some more investigation and I see that on line 1514 at ChannelFile.php 
> the following code exist:
> 
> $val = &new PEAR_Validate;
> 
> The question is:
> 
> how to resolve the issue ???
> 
> some points:
> 
> I see that PEAR_Validate is Installer classes provides an API for the 
> administration and management of PEAR Packages
> 
> How I know that ? I see it in the following URL:
> http://pear.php.net/manual/en/core.ppm.php
> 
> So maybe PEAR_Validate is not part of the Validate package which I have 
> installed separated ?
> 
> because the validate package is documented in the following URL:
> http://pear.php.net/package/Validate
> 
> Please Advice how to resolve the issue ?
> 
> thanks in advanced 

Look for this file:

D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR\PEAR\Validate.php

If it doesn't exist, that's the problem. If it does exist, that file
contains the class PEAR_Validate which has nothing to do with the
Validate package you have installed

> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--
Niel Archer



--- End Message ---
--- Begin Message ---
Hello

1)

D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR>dir *validate*
Volume in drive D has no label.
Volume Serial Number is 4C76-AE4A

Directory of D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR

06/21/2009  08:51 AM            40,643 Validate.php
              1 File(s)         40,643 bytes
              0 Dir(s)   5,115,588,608 bytes free

SO , as you can see the file exist under the PATH:
D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR

2)

D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR\PEAR>dir *validate*
Volume in drive D has no label.
Volume Serial Number is 4C76-AE4A

Directory of D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR\PEAR

06/21/2009  08:14 AM            22,064 Validate.php
              1 File(s)         22,064 bytes
              0 Dir(s)   5,115,326,464 bytes free

SO , as you can see the file exist under the PATH:
D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR\PEAR

3)

I already understand that Class 'PEAR_Validate' is not part of the PEAR Validate package.
PEAR_Validate is part of PEAR
You can see it on the following URL:
http://pear.php.net/manual/en/core.ppm.php

So the conclusion is that PEAR_Validate class is not part of
http://pear.php.net/package/Validate

it's class which belongs to PEAR package it's self and not the validate package.

4)

I tried to upgarde the PEAR package to the latest version/revision:

D:\Inetpub\vhosts\domain.com\httpdocs\phppear>"d:\inetpub\vhosts\domain.com\httpdocs\phppear\pear.bat" upgrade PEAR

Notice: Use of undefined constant PEAR_VALIDATE_DOWNLOADING - assumed 'PEAR_VALIDATE_DOWNLOADING' in PEAR\Command\Install.php on line 584

Fatal error: Class 'PEAR_Validate' not found in D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR\PEAR\ChannelFile.php on line 1514

5)

I tried to install Mail-1.2.0b2 package:

pear.bat install --alldeps Mail-1.2.0b2

Fatal error: Class 'PEAR_Validate' not found in D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR\PEAR\ChannelFile.php on line 1514

7)

How to resolve the issue ?
I dont want to delete the PEAR directory.
This is the easy resort. I want to find the source of the issue.

THIS IS THE CHALLENGE !!!

thanks in advanced.



--- End Message ---
--- Begin Message --- for some reason I found that the new pear packages which I have installed have been deployed into C:\php5\pear but I have configured the include_path in the registry file.

because I didnt find any otherway then I have configured the include_path in the php.ini level

but still , when I install new PEAR packages , the new packages goes to C:\php5\pear

to ansure that the new include_path configuration is being used by php.exe , I have execute the command:

D:\Inetpub\vhosts\domain.com\httpdocs\phppear>C:\SWSoft\Plesk\Additional\PleskPHP5\php.exe -r phpinfo(); | find "include"
allow_url_include => Off => Off
include_path => .;D:\inetpub\vhosts\domain.com\httpdocs\phppear\pear\ => .;D:\inetpub\vhosts\domain.com\httpdocs\phppear\pear\
safe_mode_include_dir => no value => no value
PMTPMTPMT => @include_path@
_SERVER["PMTPMTPMT"] => @include_path@
_ENV["PMTPMTPMT"] => @include_path@
and included in the distribution in the file:  LICENSE

D:\Inetpub\vhosts\domain.com\httpdocs\phppear>

What you can see ?

you can see that the include_path is set to be D:\inetpub\vhosts\domain.com\httpdocs\phppear\pear\

this is the path where the files:

go-pear.bat
PEAR\go-pear.phar

exist

*******************************************
I dont understand from where the path C:\php5 is taken ?
I have configured the include_path to be .;D:\inetpub\vhosts\domain.com\httpdocs\phppear\pear\ you can also see above from the phpinfo() output that this is the path which configured as include_path
*******************************************

Please advice how to resolve the issue of C:\php5\pear

thanks in advanced.
--- End Message ---
--- Begin Message ---
> Hello
> 
> 1)
> 
> D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR>dir *validate*
>  Volume in drive D has no label.
>  Volume Serial Number is 4C76-AE4A
> 
>  Directory of D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR
> 
> 06/21/2009  08:51 AM            40,643 Validate.php
>                1 File(s)         40,643 bytes
>                0 Dir(s)   5,115,588,608 bytes free
> 
> SO , as you can see the file exist under the PATH:
> D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR
> 
> 2)
> 
> D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR\PEAR>dir *validate*
>  Volume in drive D has no label.
>  Volume Serial Number is 4C76-AE4A
> 
>  Directory of D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR\PEAR
> 
> 06/21/2009  08:14 AM            22,064 Validate.php
>                1 File(s)         22,064 bytes
>                0 Dir(s)   5,115,326,464 bytes free
> 
> SO , as you can see the file exist under the PATH:
> D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR\PEAR
> 
> 3)
> 
> I already understand that Class 'PEAR_Validate' is not part of the PEAR 
> Validate package.
> PEAR_Validate is part of PEAR
> You can see it on the following URL:
> http://pear.php.net/manual/en/core.ppm.php
> 
> So the conclusion is that PEAR_Validate class is not part of
> http://pear.php.net/package/Validate
> 
> it's class which belongs to PEAR package it's self and not the validate 
> package.
> 
> 4)
> 
> I tried to upgarde the PEAR package to the latest version/revision:
> 
> D:\Inetpub\vhosts\domain.com\httpdocs\phppear>"d:\inetpub\vhosts\domain.com\httpdocs\phppear\pear.bat"
>  
> upgrade PEAR
> 
> Notice: Use of undefined constant PEAR_VALIDATE_DOWNLOADING - assumed 
> 'PEAR_VALIDATE_DOWNLOADING' in PEAR\Command\Install.php on line 584
> 
> Fatal error: Class 'PEAR_Validate' not found in 
> D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR\PEAR\ChannelFile.php on 
> line 1514
> 
> 5)
> 
> I tried to install Mail-1.2.0b2 package:
> 
> pear.bat install --alldeps Mail-1.2.0b2
> 
> Fatal error: Class 'PEAR_Validate' not found in 
> D:\Inetpub\vhosts\domain.com\httpdocs\phppear\PEAR\PEAR\ChannelFile.php on 
> line 1514
> 
> 7)
> 
> How to resolve the issue ?
> I dont want to delete the PEAR directory.
> This is the easy resort. I want to find the source of the issue.
> 
> THIS IS THE CHALLENGE !!!

Enjoy your challenge, I would just  want it fixed quickly and
completely.

Go to:

http://pear.php.net/manual/en/installation.getting.php

and follow the instructions if you decide to simply update the PEAR to
the latest version.  All installed packages should be available
afterwards, provided the locations are the same.

> thanks in advanced.
>
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--
Niel Archer



--- End Message ---

Reply via email to