Commit: 1e13ff6d8c68fdefb3830dcb120be66915584800 Author: Anatol Belski <[email protected]> Tue, 10 Mar 2015 20:42:58 +0100 Parents: 8bde10601d6c700211ef90441a76bdc3deb3ec9e Branches: master pecl_legacy
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=1e13ff6d8c68fdefb3830dcb120be66915584800 Log: improve the way an extension name is recognized Changed paths: M client/include/PeclExt.php Diff: diff --git a/client/include/PeclExt.php b/client/include/PeclExt.php index 0ad1ae8..9d19140 100644 --- a/client/include/PeclExt.php +++ b/client/include/PeclExt.php @@ -118,6 +118,12 @@ class PeclExt } } + if (!$this->name) { + if (preg_match("/EXTENSION\s*\(\s*('|\")([a-z0-9_]+)('|\")\s*,/Sm", file_get_contents($config_w32_path), $m)) { + $this->name = $m[2]; + } + } + /* give up */ if (!$this->name) { throw new \Exception("Couldn't reliably determine the package name, please fix or add package.xml"); -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
