com web/rmtools: add library bin path to the build path, some bins from there can be used: include/PeclBuildVC.php include/PeclExt.php

From: Date: Fri, 03 Nov 2017 08:02:45 +0000
Subject: com web/rmtools: add library bin path to the build path, some bins from there can be used: include/PeclBuildVC.php include/PeclExt.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-26532@lists.php.net to get a copy of this message
Commit: 8b52360847e7dfc962c3a0a3e11b631197a1d732 Author: Anatol Belski <ab@php.net> 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)) {

« previous php.webmaster (#26532) next »