Commit: 3403fc68d8464c6594162d1eccd345992676b07e Author: Anatol Belski <[email protected]> Thu, 12 Sep 2013 13:56:37 +0200 Parents: 01cb0b9e5dfd14869933c7aeabce6cbbbbefb316 Branches: master
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=3403fc68d8464c6594162d1eccd345992676b07e Log: care also about package2.xml Changed paths: M client/include/PeclExt.php Diff: diff --git a/client/include/PeclExt.php b/client/include/PeclExt.php index 6dcfd5c..93bebcd 100644 --- a/client/include/PeclExt.php +++ b/client/include/PeclExt.php @@ -122,8 +122,14 @@ class PeclExt $this->tmp_extract_path = realpath($tmp_path . '/' . basename($this->tgz_path, '.tgz')); + $package_xml_path = NULL; if (file_exists($tmp_path . DIRECTORY_SEPARATOR . 'package.xml')) { $package_xml_path = $tmp_path . DIRECTORY_SEPARATOR . 'package.xml'; + } else if (file_exists($tmp_path . DIRECTORY_SEPARATOR . 'package2.xml')) { + $package_xml_path = $tmp_path . DIRECTORY_SEPARATOR . 'package2.xml'; + } + + if ($package_xml_path) { $this->package_xml = new \SimpleXMLElement($package_xml_path, 0, true); } -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
