Skip to content

Commit

Permalink
Invalid regexp in PEAR_Builder::build() (bug #20086)
Browse files Browse the repository at this point in the history
  • Loading branch information
sad-spirit authored and cweiske committed Mar 1, 2014
1 parent c0473a9 commit 144fd51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PEAR/Builder.php
Expand Up @@ -245,7 +245,7 @@ function _harvestInstDir($dest_prefix, $dirname, &$built_files)
*/
function build($descfile, $callback = null, $options = array())
{
if (preg_match('/(\\/|\\\\|^)([^\\/\\\\]+)?php(.+)?$/',
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'))) {
Expand Down

0 comments on commit 144fd51

Please sign in to comment.