summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-08-10 15:10:41 +0200
committerRemi Collet <remi@remirepo.net>2020-08-10 15:10:41 +0200
commit043b5775293d3f3019083f21f9aa04d26c375832 (patch)
tree07445e93f492da6a1aae348e48d599c08204bbe3
parent6414d5aa668b82e7b91a9f25c3af08ef39c3de19 (diff)
the new patch
-rw-r--r--php-mongodb-rpm.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/php-mongodb-rpm.patch b/php-mongodb-rpm.patch
new file mode 100644
index 0000000..93c861f
--- /dev/null
+++ b/php-mongodb-rpm.patch
@@ -0,0 +1,24 @@
+diff -up ./src/Client.php.rpm ./src/Client.php
+--- ./src/Client.php.rpm 2020-08-10 14:57:12.478570154 +0200
++++ ./src/Client.php 2020-08-10 14:58:11.161534530 +0200
+@@ -18,7 +18,6 @@
+ namespace MongoDB;
+
+ use Iterator;
+-use Jean85\PrettyVersions;
+ use MongoDB\Driver\ClientEncryption;
+ use MongoDB\Driver\Exception\InvalidArgumentException as DriverInvalidArgumentException;
+ use MongoDB\Driver\Exception\RuntimeException as DriverRuntimeException;
+@@ -387,11 +386,7 @@ class Client
+ private static function getVersion() : string
+ {
+ if (self::$version === null) {
+- try {
+- self::$version = PrettyVersions::getVersion('mongodb/mongodb')->getPrettyVersion();
+- } catch (Throwable $t) {
+- return 'unknown';
+- }
++ self::$version = '@VERSION@';
+ }
+
+ return self::$version;