Fw: [PEAR] Warning with 4.3.0
| From: | Mikael Krantz | Date: | Wed, 01 Jan 2003 19:13:42 +0000 |
| Subject: | Fw: [PEAR] Warning with 4.3.0 | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-3128@lists.php.net to get a copy of this message | ||
> I installed php 4.3.0. Now when I start pear on the commandline I get
> the following warnings:
>
> Notice: Use of undefined constant PEAR_CONFIG_SYSCONFDIR - assumed
> 'PEAR_CONFIG_SYSCONFDIR' in Config.php on line 177
>
> Notice: Use of undefined constant PEAR_CONFIG_SYSCONFDIR - assumed
> 'PEAR_CONFIG_SYSCONFDIR' in Config.php on line 408
>
> What is that? Can anyone help me?
This is probably not a nice or correct solution but it
takes care of the problem. In the file PEAR/Config.php
you se the following:
if (isset($_ENV['PHP_PEAR_SYSCONF_DIR'])) {
define('PEAR_CONFIG_SYSCONFDIR', $_ENV['PHP_PEAR_SYSCONF_DIR']);
} elseif (isset($_ENV['SystemRoot'])) {
define('PEAR_CONFIG_SYSCONFDIR', $_ENV['SystemRoot']);
} elseif (@is_dir(PHP_SYSCONFDIR)) {
define('PEAR_CONFIG_SYSCONFDIR', PHP_SYSCONFDIR);
}
// *****************
// Add this and set is to your pear-root!
// Most likely /usr/share/pear or /usr/local/share/pear
else {
define('PEAR_CONFIG_SYSCONFDIR', '/where/is/pear');
}
Again, the problem is somewhere else and this is
should be considered a 'quick and dirty' fix. Someone else
on the list should have more info about what env-variables are missing.
Good luck!
/Mike
----- Original Message -----
From: "Stefan Sturm" <mailling@anrath.info>
To: <pear-general@lists.php.net>
Sent: Wednesday, January 01, 2003 5:31 PM
Subject: [PEAR] Warning with 4.3.0
> Hello,
>
> I installed php 4.3.0. Now when I start pear on the commandline I get
> the following warnings:
>
> Notice: Use of undefined constant PEAR_CONFIG_SYSCONFDIR - assumed
> 'PEAR_CONFIG_SYSCONFDIR' in Config.php on line 177
>
> Notice: Use of undefined constant PEAR_CONFIG_SYSCONFDIR - assumed
> 'PEAR_CONFIG_SYSCONFDIR' in Config.php on line 408
>
> What is that? Can anyone help me?
>
> Thanks,
>
> Stefan Sturm
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>