#37121 [NEW]: PEAR_CONFIG_DEFAULT_PHP_DIR misdefined?
| From: | mrl at conectiva dot com dot br | Date: | Tue, 18 Apr 2006 17:21:59 +0000 |
| Subject: | #37121 [NEW]: PEAR_CONFIG_DEFAULT_PHP_DIR misdefined? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-95939@lists.php.net to get a copy of this message | ||
From: mrl at conectiva dot com dot br
Operating system: All
PHP version: 5.1.2
PHP Bug Type: *Compile Issues
Bug description: PEAR_CONFIG_DEFAULT_PHP_DIR misdefined?
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 bug report at http://bugs.php.net/?id=37121&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37121&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37121&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37121&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37121&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37121&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37121&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37121&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37121&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37121&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37121&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37121&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37121&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37121&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37121&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37121&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37121&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37121&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37121&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37121&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37121&r=mysqlcfg