Files
phpredis/tests
michael-grunder b97951cddc Rework TLS context logic
Instead of currying around a `php_stream_context` object, just retain
the context array provided by the user itself like we do with other
connection information like host and port. This lets users reconnect in
a loop without leaking memory.

```php
$redis = new \Redis;
while (true) {
    // Previously each reconnect call would leak the
    // `php_stream_context` structure.
    $redis->connect('tls://127.0.0.1', 9999, 1, null, 0, 0, [
        'stream' => ['verify_peer' => false, 'verify_peer_name' => false],
    ]);

    $redis->ping();

    $redis->close();
}
```
2026-02-18 09:46:55 -08:00
..
2024-05-30 12:10:46 -07:00
2011-08-18 09:39:14 +01:00
2026-02-18 09:46:55 -08:00
2026-02-18 09:46:55 -08:00
2024-05-30 12:10:46 -07:00
2026-02-18 09:46:55 -08:00
2026-02-18 09:46:55 -08:00
2020-06-24 17:00:01 -07:00
2022-10-09 16:15:02 -07:00