Till Krüss
292604edbf
fix HHVM lowercase issue
...
Fatal error: Uncaught Error: Keyword __HALT_COMPILER must be written in lowercase
2020-08-10 13:02:49 -07:00
Till Krüss
fc8f9f5604
Merge pull request #585 from gladx/v1.1
...
Fix test error exception for SELECT command
2020-08-10 12:41:25 -07:00
Till Krüss
77132e6c6b
Merge pull request #589 from funivan/patch-1
...
Fix wiki link
2020-08-10 12:40:46 -07:00
Till Krüss
a7571ef0c7
Merge pull request #583 from Miljan9602/v1.1
...
Fixed wrong annotation for spop method.
2020-08-10 12:40:27 -07:00
Till Krüss
4901408b08
Merge pull request #611 from hannesvdvreken/patch-2
...
Bring travis config up to date
2020-08-10 12:29:13 -07:00
Till Krüss
dd3897b755
Merge pull request #610 from hannesvdvreken/patch-1
...
Add more build targets
2020-08-10 12:28:53 -07:00
Hannes Van De Vreken
6e7dbe05fb
Bring travis config up to date
2020-07-29 03:33:50 +02:00
Hannes Van De Vreken
f0f9d68a8e
Add more build targets
2020-07-29 03:18:56 +02:00
Ivan Shcherbak
bb6f1ee0e3
Fix wiki link
2019-11-25 14:23:35 +02:00
Ali Yousefi
ffcc4bba8c
Fix test error exception for SELECT command
2019-10-06 22:10:17 +03:30
Miljan Rakita
83359dff9a
Fixed wrong annotation for spop method.
...
Spop method has return annotation string, but it returns array.
2019-09-10 19:26:00 +02:00
Daniele Alessandri
111d100ee3
Make examples scripts executable only via CLI.
...
This is meant as a basic layer of protection for those cases where the whole
Predis repository is cloned into a path which is publicly exposed by the web
server.
Closes #408
2017-07-12 16:39:17 +02:00
Daniele Alessandri
893215a1d4
Push same changes of #446 to Predis\ClientContextInterface.
...
This also adds a couple of missing changes into the original PR.
2017-07-12 15:34:57 +02:00
Daniele Alessandri
f5d8b9fe2d
Merge remote-tracking branch 'github/pr/446' into v1.1
2017-07-12 15:24:15 +02:00
Daniele Alessandri
722b513cea
Upgrade .php_cs configuration file for php-cs-fixer 2.x
2017-07-12 15:22:58 +02:00
Daniele Alessandri
62774c6cc5
Merge remote-tracking branch 'github/pr/442' into v1.1
2017-07-12 13:37:06 +02:00
Daniele Alessandri
8aa2ded5b0
Merge remote-tracking branch 'github/pr/445' into v1.1
2017-07-12 13:36:17 +02:00
Daniele Alessandri
795c3e41b0
Merge remote-tracking branch 'github/pr/434' into v1.1
2017-07-12 13:31:24 +02:00
Daniele Alessandri
59e616b124
Remove broken badge.
...
Looks like hhvm.h4cc.de is dead.
[ci skip]
2017-07-12 13:30:52 +02:00
Daniele Alessandri
157f658f0b
Fix iterators abstractions for HSCAN and ZSCAN when using PHP 7.2.
...
Closes #488 .
2017-07-12 11:59:35 +02:00
Daniele Alessandri
343afd312a
Fix wrong CRC16 calculated on integer value.
...
Closes #450 .
2017-07-12 11:29:25 +02:00
Daniele Alessandri
d77b77bbd9
Merge remote-tracking branch 'github/pr/443' into v1.1
2017-07-12 10:59:41 +02:00
gitomato
34b678192f
Add string type to $keys argument
...
Reveals the ability to use a string for $keys argument.
2017-06-29 10:25:14 +02:00
Jorrit Schippers
4de246cfee
Correct link to GitHub releases page
2017-06-27 09:35:15 +02:00
Anatoly Pashin
6fd6933580
Create .travis.yml
2017-06-11 00:28:43 +10:00
Anatoly Pashin
c7b38abe71
use trusty dist
2017-06-09 18:05:11 +10:00
Anatoly Pashin
574ef78f86
fix typehint
2017-06-09 17:57:00 +10:00
Andrii Volin
1ebabaf8f8
fix typo in tests/README.md
2017-05-01 17:12:25 +03:00
Daniele Alessandri
98ec0cc27e
Merge remote-tracking branch 'github/pr/376' into v1.1
...
[ci skip]
2016-11-22 15:32:30 +01:00
Daniele Alessandri
caf8a46cbb
Merge remote-tracking branch 'github/pr/373' into v1.1
...
[ci skip]
2016-11-22 15:30:42 +01:00
Daniele Alessandri
944a16d7c0
Merge remote-tracking branch 'github/pr/393' into v1.1
2016-11-17 17:55:23 +01:00
Remi Collet
d1290dfde0
fix test for ArgumentCountError exception with PHP 7.1
2016-11-17 15:24:54 +01:00
Remi Collet
9489d9e5aa
enable 7.1 on travis
2016-11-17 15:12:24 +01:00
Fabien Villepinte
94ccb2cc3b
Fix PHPDoc of \Predis\Connection\Aggregate\SentinelReplication::assertConnectionRole()
2016-09-14 17:20:55 +02:00
orvice
6c848db2a0
fix typo
2016-08-19 16:48:00 +08:00
Daniele Alessandri
6ab10b2b70
[tests] Fix preassigned slots in cluster tests.
2016-06-18 21:51:10 +02:00
Daniele Alessandri
2d4377fc81
Back to development.
2016-06-18 21:37:42 +02:00
Daniele Alessandri
f0210e3888
Update CHANGELOG and bump VERSION.
v1.1.1
2016-06-16 18:22:20 +02:00
Daniele Alessandri
5e88200ed6
Merge branch 'github/pr/344' into v1.1
2016-06-16 10:47:45 +02:00
Daniele Alessandri
aed1a7bdf1
Apply same fix of 8437fbc to ClientContextInterface.
2016-06-16 10:47:01 +02:00
Daniele Alessandri
2290042680
Fix GC issues with closures for phpiredis reader handlers.
...
The following code, despite not being something you would do in real
world scenarios, eventually ended up generating an exception for "Too
many open files".
for ($i = 0; $i < 10000; $i++) {
$client = new Predis\Client();
$client->connect();
}
The reason was that the destructor for the connection was not invoked
by PHP as expected when the client instance went out of scope, so the
underlying stream resource were not being properly released.
Even without an actual "connect()" operation, the memory usage of PHP
kept growing until exhausting the configured value of max memory.
The source of the issue is related to the use of closures as handlers
for the phpiredis reader resource, to be more precise it seems to be
some kind of circular reference memory leak. Apparently PHP does not
like the fact that a closure, automatically bound to "$this" starting
with PHP 5.4, is stored in the reader resource which in turn is kept
referenced by "$this". This ends up the refcount not going down thus
the GC does not collect those connection objects going out of scope.
This is confirmed by the fact that this issue is not triggered when
using PHP 5.3 where the ZE does not automatically bind closures to
"$this", unless you capture "$this" with the "use()" directive (and
the usual "$that = $this" trick).
Using a static assignement instead of simply returning new closures
in "getStatusHandler()" and "getErrorHandler()" is kind of an hack
that seems to be working fine, the added value of this solution is
that we do not have to break the internal API of the three connection
backends based on ext-phpiredis.
This commit fixes #345 .
2016-06-14 21:25:14 +02:00
Daniele Alessandri
295e9175ad
Update CHANGELOG.
...
[ci skip]
2016-06-14 18:21:36 +02:00
Pascal Hofmann
d92f31dc66
Don't send AUTH and/or SELECT command after connecting to sentinels
2016-06-14 17:20:08 +02:00
Felix Sandström
8437fbc84f
Correcting the PHPDocs
2016-06-14 10:02:47 +02:00
Daniele Alessandri
4d58928efd
[tests] Add test for Predis\Cluster\Hash\CRC16.
2016-06-13 18:57:06 +02:00
Daniele Alessandri
a523cf7731
Use master for connect() when sentinel reports no slaves.
...
Fixes #342 .
2016-06-13 15:51:23 +02:00
Daniele Alessandri
1ad0effb0a
Merge remote-tracking branch 'github/pr/343'
2016-06-13 15:21:26 +02:00
Daniele Alessandri
0607d84d0c
Back to development.
2016-06-13 15:20:48 +02:00
orvice
a1ee7b68ef
fix typos
...
possibile -> possible
indentify -> identify
publis -> publish
2016-06-12 16:27:14 +08:00
Daniele Alessandri
0e17edbefb
Update CHANGELOG and bump VERSION.
v1.1.0
2016-06-02 00:06:21 +02:00