#37121 [Opn->Bgs]: PEAR_CONFIG_DEFAULT_PHP_DIR misdefined?
| From: | bjori@php.net | Date: | Tue, 18 Apr 2006 17:59:08 +0000 |
| Subject: | #37121 [Opn->Bgs]: PEAR_CONFIG_DEFAULT_PHP_DIR misdefined? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95943@lists.php.net to get a copy of this message | ||
ID: 37121
Updated by: bjori@php.net
Reported By: mrl at conectiva dot com dot br
-Status: Open
+Status: Bogus
Bug Type: *Compile Issues
Operating System: All
PHP Version: 5.1.2
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Please report bugs in PEAR at
http://pear.php.net/bugs/report.php?package=PEAR
Previous Comments:
------------------------------------------------------------------------
[2006-04-18 17:21:59] mrl at conectiva dot com dot br
Description:
------------
At pear/install-pear-nozlib.phar for php 5.1.2 and at
pear/PEAR/Config.php for php 4.4.2 there is the sequence:
// Default for php_dir
if (getenv('PHP_PEAR_INSTALL_DIR')) {
define('PEAR_CONFIG_DEFAULT_PHP_DIR',
getenv('PHP_PEAR_INSTALL_DIR'));
} else {
if (@is_dir($PEAR_INSTALL_DIR)) {
define('PEAR_CONFIG_DEFAULT_PHP_DIR',
$PEAR_INSTALL_DIR);
} else {
define('PEAR_CONFIG_DEFAULT_PHP_DIR',
$PEAR_INSTALL_DIR);
}
}
Please note that the blocks controled by the if(@is_dir)
are just the same. So either we wouldn't need the check,
or the second block is mistyped.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37121&edit=1