Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.15

Request #12898 Multiple instances of PEAR will cause conflicts and side effects
Submitted: 2008-01-14 02:10 UTC
From: megasquall Assigned:
Status: Open Package: PEAR (version 1.6.2)
PHP Version: Irrelevant OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  


 [2008-01-14 02:10 UTC] megasquall (Adrien Hupond)
Description: ------------ When having installed several instances of PEAR, there are side effects using them in the same environment. The first instance of PEAR run will populate environment varaibles with its values. Then it is needed to unset those variables prior to using any other instance of PEAR, or open another command line window. Failing to do so will usually result in mixing things from two PHP versions. Considering that the first run version is php4 and the version which is intended to be called after is php5, it will result in using : php4\php.exe php4\pear\* php5\php.ini php5\*.dll I think those values should be moved from environment variables to pear.ini Test script: --------------- # Batch file cd \php4\ pear list cd \php5\ pear list Expected result: ---------------- INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET: ========================================= PACKAGE VERSION STATE ... ... ... INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET: ========================================= PACKAGE VERSION STATE ... ... ... Actual result: -------------- INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET: ========================================= PACKAGE VERSION STATE ... ... ... " This application has failed to start because php4ts.dll was not found. Re-installing the application may fix this problem "

Comments