PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PEAR » PEAR » Bug #7104

install script adds a unnecessary ".:" before the Installation prefix

Details

Submitted2006-03-13 01:03 UTC
Fromb dot g dot l dot nelissen at gmail dot com
Assignedpajoye
StatusBogus
PackagePEAR
PHP Version4.3.11
OSOSX 10.4.3
Roadmaps(Not assigned)

Comments

[2006-03-13 01:03 UTC] b dot g dot l dot nelissen at gmail dot com

Description:
------------
choosing a custom "Installation prefix" will cause the
instalation script to add an .: to the preferred prefix.

Test script:
---------------
(operating system is OSX)
# curl http://go-pear.org | php
choose option 1
type: "/usr/local"
press enter

test it with:
<?php
require "XML/RSS.php";
$feed = '';
$rss =& new XML_RSS($feed);
$rss->parse();
print "<ul>/n";
foreach ($rss->getItems() as $item) {
print '<li><a href="' .$item['link'] . '">' . $item['title'] . "</a></li>\n";
}
print "</ul>\n";
?>

Expected result:
----------------
a rss view of the site given in $feed = '';

Actual result:
--------------
Fatal error: main(): Failed opening required 'XML/
RSS.php' (include_path='.:/usr/lib/php') in /Library/PRIVATE/
index.php on line 43

WATCH THE "include_path" IT CONTAINS AN ".:" WITCH DOES NOT
BELONG THERE.

[2006-03-13 08:11 UTC] b dot g dot l dot nelissen at gmail dot com

(sorry aint got the installation at hand, ill try to memorize it)

After choosing the install options the installer will install.
After the installation a summary will show up inwhich:

include_path='.:/usr/lib/php'

(the wrong path...)

this path commes back if you try to run a php script as written before.

[2006-03-13 13:01 UTC] b dot g dot l dot nelissen at gmail dot com

SOLVED
Thanks for pointing out the fault in my configuration.
I appreciate your time.

thanks,

Bastiaan Nelissen