summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-11-10 10:51:41 +0100
committerRemi Collet <remi@php.net>2023-11-10 10:51:41 +0100
commit38f8de8112ef200bca1c8851a19ebec5e08ee5eb (patch)
treefe40e2a332dafefdc9ba4ae5721a99439b6851a2
parent9f7298ac633f610af96b0b915e49596bb5520aeb (diff)
Release 1.1.0v1.1.0
-rw-r--r--package.xml2
-rw-r--r--php_rpminfo.h10
-rw-r--r--rpminfo.c2
3 files changed, 3 insertions, 11 deletions
diff --git a/package.xml b/package.xml
index 515cb66..a9fb372 100644
--- a/package.xml
+++ b/package.xml
@@ -15,7 +15,7 @@ Documentation: https://www.php.net/rpminfo
</lead>
<date>2023-11-10</date>
<version>
- <release>1.1.0dev</release>
+ <release>1.1.0</release>
<api>1.0.0</api>
</version>
<stability>
diff --git a/php_rpminfo.h b/php_rpminfo.h
index eaf7451..49a25fc 100644
--- a/php_rpminfo.h
+++ b/php_rpminfo.h
@@ -22,15 +22,7 @@
extern zend_module_entry rpminfo_module_entry;
#define phpext_rpminfo_ptr &rpminfo_module_entry
-#define PHP_RPMINFO_VERSION "1.1.0-dev"
-
-#ifdef PHP_WIN32
-# define PHP_RPMINFO_API __declspec(dllexport)
-#elif defined(__GNUC__) && __GNUC__ >= 4
-# define PHP_RPMINFO_API __attribute__ ((visibility("default")))
-#else
-# define PHP_RPMINFO_API
-#endif
+#define PHP_RPMINFO_VERSION "1.1.0"
#ifdef ZTS
#include "TSRM.h"
diff --git a/rpminfo.c b/rpminfo.c
index 08ba780..8cfac4d 100644
--- a/rpminfo.c
+++ b/rpminfo.c
@@ -857,7 +857,7 @@ PHP_FUNCTION(rpmgetsymlink)
fi = rpmfiNewArchiveReader(gzdi, files, RPMFI_ITER_READ_ARCHIVE);
rc = rpmfiFindFN(fi, name);
- rpmfiSetFX(fi, rc); /* return value not reliable on librpm < 4.17 */
+ rpmfiSetFX(fi, rc); /* return value have change in 4.18 (from previous to new) */
if (rc < 0
|| rpmfiFX(fi) != rc
|| (link = rpmfiFLink(fi)) == NULL) {