Re: Pear installer and dependancy issue.
| From: | Davey | Date: | Thu, 07 Aug 2003 20:46:41 +0000 |
| Subject: | Re: Pear installer and dependancy issue. | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7091@lists.php.net to get a copy of this message | ||
Simon Mann wrote:
Hi all, I have recently installed the PEAR package manager and ran it to install HTML_SetupWizard-1.0RC1.tgz It listed all the dependancies fine which I installed but it keeps falling over on the following requires package `PHP' >= 4.1.0 HTML_SetupWizard: Dependencies failed Now trudging through the code shows me that it should hit the function callCheckMethod in PEAR/Dependancy.php and check the version of php but for some reason it reads php as a package and tries to find a registry entry for it which obviously falls over. I'll carry on looking into how this is built up but if someone knows why this has happened I'd much appreciate a quick fix :o) Oh by the way the checkPHP version needs the following adding in as it doesn't do a check to see if the php version returned is a release candidate or not.Simon, Read the notes on version_compare, it does all this for you. It recognises all the version types used by PHP, that includes knowing that PHP 4.3.2RC1 is less than PHP 4.3.2 and PHP 4.3.2RC2 I believe the problem may be that the package.xml has PHP down as a package and not as PHP, I will check and get back to you tomorrow unless someone else wants to do it sooner? - Davey$php_ver = phpversion();**** new code check ****// checks for php release candidate usage if(stristr($php_ver, "-RC")) { $php_ver = substr($php_ver, 0, strpos($php_ver, '-')); }**** end new code check **** Hope this helps :o) Simon Mann