constructor PEAR_Info::PEAR_Info

constructor PEAR_Info::PEAR_Info() – PHP 4 style constructor (ZE1)


require_once 'PEAR/Info.php';

void constructor PEAR_Info::PEAR_Info ( string $pear_dir = '' , string $user_file = '' , string $system_file = '' , array $options = null )


$user_file, $system_file and $options parameters are available since version 1.7.0RC1, allowing to define more easily the PEAR configuration files, and choose what information to display akin to PHP's phpinfo().


string $pear_dir

(optional) The PEAR base install directory

string $user_file

(optional) file to read PEAR user-defined options from

string $system_file

(optional) file to read PEAR system-wide defaults from

array $options

(optional) configure PEAR information output


throws no exceptions thrown


since version 1.0.1 (2003-04-24)


This function can not be called statically.


require_once 'PEAR/Info.php';

// Display only PEAR version and logo, reference to config file, list of channels
// and quick list of packages (with only version info) installed thru channels
// pear, __uri, pecl.
'channels' => array('''__uri''pecl.php_net')

// Give PEAR install directory where to find pear.ini or pearsys.ini files
$info = new PEAR_Info('c:\wamp\php'''''$options);


Reference guide (Previous) Displays PEAR_Info output (Next)
Last updated: Sun, 22 Jan 2017 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.