com web/rmtools: Use proc_open based exec as the cm d needs env: include/PeclExt.php

From: Date: Fri, 03 Nov 2017 12:07:30 +0000
Subject: com web/rmtools: Use proc_open based exec as the cm d needs env: include/PeclExt.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-26536@lists.php.net to get a copy of this message
Commit: d1dc1fcce5f0ad8e6cbfe38a49538e43d299b391 Author: Anatol Belski <ab@php.net> Fri, 3 Nov 2017 13:07:30 +0100 Parents: 5042b078dd96639a756a87573e5710588538e910 Branches: master Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=d1dc1fcce5f0ad8e6cbfe38a49538e43d299b391 Log: Use proc_open based exec as the cmd needs env Changed paths: M include/PeclExt.php Diff: diff --git a/include/PeclExt.php b/include/PeclExt.php index f39da0c..6fcbf38 100644 --- a/include/PeclExt.php +++ b/include/PeclExt.php @@ -339,7 +339,8 @@ class PeclExt $php_bin = PHP_BINARY; } $cmd = $php_bin . " $this->pickle_phar convert " . $package_xml_dir; - $pickle_convert_out = shell_exec($cmd); + $pickle_convert_out = exec_single_log($cmd, NULL, $this->build->env); + if (file_exists($package_xml_dir . DIRECTORY_SEPARATOR . "composer.json")) { $this->composer_json_path = $package_xml_dir . DIRECTORY_SEPARATOR . "composer.json";

« previous php.webmaster (#26536) next »