Jump to content
The Uniform Server Community

PEAR directory bug 8.5.4-8.6.7


RSTaylor
 Share

Recommended Posts

In Coral 8.5.4 (checked the current 8.6.7 and it appears to still be there), the us_pear/index.php tries to naively guess its location using

$path_array      = explode("\\home",dirname(__FILE__)); // Split at folder us_lear

This of course fails if the directory that Uniserver is installed in happens to have 'home' in it. (In my case, I had it installed in c:\home\Uniserver, so us_pear was in C:\home\UniServer\home\us_pear.

 

Not only did it guess its paths wrong, even when I updated the pear.conf file with the correct paths, it just kept overwriting it with the wrong paths.

 

My solution: replaced that line with

  $path_array = array(realpath(__DIR__ .'/../..'));

Now it correctly finds the Uniserver root two directories up and can find itself (instead of thinking that it's at C:\home\us_pear).

 

Hope that helps somebody else.

Link to comment
Share on other sites

Thanks for your feedback; correction will be implemented in next release 8.6.8

 

The above bug was perpetuated in 9.0.0-Steel corrected in next release B5

 

All the best

Ric :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...