Commit:    8b52360847e7dfc962c3a0a3e11b631197a1d732
Author:    Anatol Belski <[email protected]>         Mon, 5 Dec 2016 20:09:04 +0100
Parents:   a0a92863fc8bbcae1594e5e88f54434f4cff132d
Branches:  master

Link:       
http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=8b52360847e7dfc962c3a0a3e11b631197a1d732

Log:
add library bin path to the build path, some bins from there can be used

(cherry picked from commit 9a4adf7f7ae8e2fa4aa2f96e52e5466efdde0951)

Changed paths:
  M  include/PeclBuildVC.php
  M  include/PeclExt.php


Diff:
diff --git a/include/PeclBuildVC.php b/include/PeclBuildVC.php
index 30a2e1c..586b94b 100644
--- a/include/PeclBuildVC.php
+++ b/include/PeclBuildVC.php
@@ -81,6 +81,11 @@ class PeclBuildVC {
                $this->env = $env;
        }
 
+       function addPath($path)
+       {
+               $this->env["PATH"] = $path . ";" . $this->env["PATH"];
+       }
+
        function setSourceDir($src_dir)
        {
                $this->build_dir = $src_dir;
diff --git a/include/PeclExt.php b/include/PeclExt.php
index 059ba94..f39da0c 100644
--- a/include/PeclExt.php
+++ b/include/PeclExt.php
@@ -440,6 +440,11 @@ class PeclExt
                                                $extra_inc[] = $dir;
                                        }
                                }
+
+                               $some_lib_bin_path =  str_replace("/", "\\", 
$lib_path . DIRECTORY_SEPARATOR . 'bin');
+                               if (file_exists($some_lib_bin_path)) {
+                                       
$this->build->addPath($some_lib_bin_path);
+                               }
                        }
 
                        if (!empty($extra_lib)) {


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to