Bug #7177 [Opn->Bgs]: Traditional local copy PEAR installation does not work
| From: | arnaud@php.net | Date: | Sat, 01 Apr 2006 12:46:55 +0000 |
| Subject: | Bug #7177 [Opn->Bgs]: Traditional local copy PEAR installation does not work | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-7723@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=7177&edit=1
ID: 7177
Updated by: arnaud@php.net
Reported By: Quan dot Vu at epfl dot ch
-Status: Open
+Status: Bogus
Id: 7177
Type: Bug
Package: Documentation
Operating System: Linux
PHP Version: 4.4.2
New Comment:
Does the PEAR::DB package actually exist in ~/pear/lib/php ? (File
DB.php).
Also, try to use set_include_path() and get_include_path() when on a
shared host.
I'm bogusing this bug because it is not documentation related but php
usage.
Previous Comments:
------------------------------------------------------------------------
[2006-03-21 21:30:35] Quan dot Vu at epfl dot ch
Description:
------------
Instructions were followed for installing a local copy of PEAR on a
shared host following
http://pear.php.net/manual/en/installation.shared.php.
Pear version installed 1.4.8 stable.
Path /home/[user]/pear/bin added to .bashrc and tested OK with which
pear
I could not get a database connection. What could be wrong?
Test script:
---------------
<?php
ini_set('include_path', '~/pear/lib' . PATH_SEPARATOR .
ini_get('include_path'));
require_once("DB.php");
?>
Expected result:
----------------
Connection to database ok.
Actual result:
--------------
Warning: main(DB.php): failed to open stream: No such file or
directory... on line 3
Fatal error: main(): Failed opening required 'DB.php'
(include_path='~/pear/lib/php:.:/usr/lib/php:/usr/local/lib/php') in...
on line 3
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=7177&edit=1