Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.0dev3

Bug #19352 PECL
Submitted: 2012-03-26 20:27 UTC
From: jimkogs Assigned:
Status: Duplicate Package: PEAR (version 1.9.4)
PHP Version: 5.3.6 OS: Lion
Roadmaps: (Not assigned)    

 [2012-03-26 20:27 UTC] jimkogs (Jim Kogler)
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


 [2012-10-14 17:47 UTC] dmausner (dave mausner)
This problem still occurs in Windows XP Pro. Example: pecl install oci8
 [2014-02-26 22:25 UTC] avb (Alexey Borzov)
-Status: Open +Status: Duplicate
The same problem as in bug #20086