Bug #19352 [Com]: PECL
| From: | dmausner | Date: | Sun, 14 Oct 2012 17:48:55 +0000 |
| Subject: | Bug #19352 [Com]: PECL | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-9185@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=19352&edit=1
ID: 19352
Comment by: dmausner
Reported By: dave at mausner dot us
Summary: PECL
Status: Open
Type: Bug
Package: PEAR
Operating System: Lion
Package Version: 1.9.4
PHP Version: 5.3.6
New Comment:
This problem still occurs in Windows XP Pro.
Example:
pecl install oci8
Previous Comments:
------------------------------------------------------------------------
[2012-03-26 21:27:41] jimkogs
Description:
------------
PECL has a regex that's behaving bizarrely, finding the first
instance of 'php' in the filename and assuming that this
matches. If your php exec is located in a folder with php in it,
as on every MAMP install, it gets confused about the suffix, then
can't find all sorts of things when it starts to build the .so.
Test script:
---------------
if (preg_match('/(\\/|\\\\|^)([^\\/\\\\]+)?php(.+)?$/',
$this->config->get('php_bin'), $matches)) {
if (isset($matches[2]) && strlen($matches[2]) &&
trim($matches[2]) !=
trim($this->config->get('php_prefix'))) {
$this->log(0, 'WARNING: php_bin ' .
$this->config->get('php_bin') .
' appears to have a prefix ' . $matches[2] .
', but' .
' config variable php_prefix does not
match');
}
if (isset($matches[3]) && strlen($matches[3]) &&
trim($matches[3]) !=
trim($this->config->get('php_suffix'))) {
$this->log(0, 'WARNING: php_bin ' .
$this->config->get('php_bin') .
' appears to have a suffix ' . $matches[3] .
', but' .
' config variable php_suffix does not
match');
}
}
Expected result:
----------------
I expect this match not to conclude that /php5.3.6/bin/php is the
suffix of the filepath.
Actual result:
--------------
WARNING: php_bin
/Applications/MAMP/bin/php/php5.3.6/bin/php appears to have a
suffix /php5.3.6/bin/php, but config variable php_suffix does not
match
running: phpize
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=19352&edit=1