com web/rmtools: improve the way an extension name is recognized: client/include/PeclExt.php
| From: | Anatol Belski | Date: | Tue, 10 Mar 2015 19:42:58 +0000 |
| Subject: | com web/rmtools: improve the way an extension name is recognized: client/include/PeclExt.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26033@lists.php.net to get a copy of this message | ||
Commit: 1e13ff6d8c68fdefb3830dcb120be66915584800
Author: Anatol Belski <ab@php.net> 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");