com php-src: Fixed regex for checking libzip static lib: ext/zip/config.w32
| From: | Anatol Belski | Date: | Sat, 07 Jul 2018 15:32:16 +0000 |
| Subject: | com php-src: Fixed regex for checking libzip static lib: ext/zip/config.w32 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102478@lists.php.net to get a copy of this message | ||
Commit: 77a841db483b878fa3b8519c9b9ed5d6418303bb
Author: Dylan K. Taylor <odigiman@gmail.com> Sat, 7 Jul 2018 10:14:31 +0100
Committer: Anatol Belski <ab@php.net> Sat, 7 Jul 2018 17:32:16 +0200
Parents: 5d0d812a53c2961ec8733230c192b711c65164cd
Branches: PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=77a841db483b878fa3b8519c9b9ed5d6418303bb
Log:
Fixed regex for checking libzip static lib
This bug caused linking issues in debug mode (see bug
[#76564](https://bugs.php.net/bug.php?id=76564))
This issue affects PHP 7.2 and master.
Bugs:
https://bugs.php.net/76564
Changed paths:
M ext/zip/config.w32
Diff:
diff --git a/ext/zip/config.w32 b/ext/zip/config.w32
index e6cd587..e39fac3 100644
--- a/ext/zip/config.w32
+++ b/ext/zip/config.w32
@@ -10,7 +10,7 @@ if (PHP_ZIP != "no") {
) {
EXTENSION('zip', 'php_zip.c zip_stream.c');
- if (get_define("LIBS_ZIP").match("libzip_a.lib")) {
+ if (get_define("LIBS_ZIP").match("libzip_a(?:_debug)?\.lib")) {
/* Using static dependency lib. */
AC_DEFINE("ZIP_STATIC", 1);
}