Commit:    8cd83d2091d29b4b6b770f3cb916a05f213ef7af
Author:    Anatol Belski <[email protected]>         Tue, 5 Sep 2017 19:36:30 +0200
Parents:   a5a7d99fcfb8289827c7cab7faacb86cec020299
Branches:  master

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

Log:
Use PHP command from the SDK

Changed paths:
  M  include/PeclExt.php


Diff:
diff --git a/include/PeclExt.php b/include/PeclExt.php
index 96792bd..2f5ffb8 100644
--- a/include/PeclExt.php
+++ b/include/PeclExt.php
@@ -334,7 +334,11 @@ class PeclExt
                } else if ($this->package_xml_path) {
                        //if (0) {
                        $package_xml_dir = dirname($this->package_xml_path);
-                       $cmd = PHP_BINARY . " $this->pickle_phar convert " . 
$package_xml_dir;
+                       $php_bin = getenv("PHP_SDK_PHP_CMD");
+                       if (!$php_bin) {
+                               $php_bin = PHP_BINARY;
+                       }
+                       $cmd = $php_bin . " $this->pickle_phar convert " . 
$package_xml_dir;
                        $pickle_convert_out = shell_exec($cmd);
 
                        if (file_exists($package_xml_dir . DIRECTORY_SEPARATOR 
. "composer.json")) {


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

Reply via email to