Permalink
Browse files

Add experimental support for the HHVM runtime.

Things may break unexpectedly at any time!
  • Loading branch information...
1 parent f1d90e2 commit f079f94746ccb0f2a62b52105c7dd121e304bf31 @nrk committed Oct 26, 2014
Showing with 15 additions and 4 deletions.
  1. +7 −0 .travis.yml
  2. +1 −0 CHANGELOG.md
  3. +4 −1 README.md
  4. +3 −3 tests/Predis/Async/ClientTest.php
View
@@ -3,6 +3,8 @@ php:
- 5.4
- 5.5
- 5.6
+ - hhvm
+ - hhvm-nightly
services:
- redis-server
install:
@@ -24,3 +26,8 @@ install:
- composer self-update
before_script:
- composer install
+matrix:
+ allow_failures:
+ - php: hhvm
+ - php: hhvm-nightly
+ fast_finish: true
View
@@ -10,6 +10,7 @@ v0.3.0 (2014-xx-xx)
- The phpiredis extension is now optional and by default the client uses a pure
PHP protocol serializer / parser provided by the clue/redis-protocol library.
+ This change also enables Predis\Async to be used with HHVM.
- Callbacks are now required by Client::connect(), Client::executeCommand(),
ConnectionInterface::connect() and ConnectionInterface::executeCommand() but
View
@@ -4,6 +4,7 @@
[![Total Downloads](https://poser.pugx.org/predis/predis-async/downloads.png)](https://packagist.org/packages/predis/predis-async)
[![License](https://poser.pugx.org/predis/predis-async/license.svg)](https://packagist.org/packages/predis/predis-async)
[![Build Status](https://travis-ci.org/nrk/predis-async.svg?branch=master)](https://travis-ci.org/nrk/predis-async)
+[![HHVM Status](http://hhvm.h4cc.de/badge/predis-async/predis-async.png)](http://hhvm.h4cc.de/package/predis/predis-async)
Asynchronous (non-blocking) version of [Predis](https://github.com/nrk/predis), the full-featured
PHP client library for [Redis](http://redis.io), built on top of [React](http://reactphp.org/) to
@@ -14,7 +15,9 @@ overhead of serializing and parsing the Redis protocol.
Predis\Async is currently under development but already works pretty well. The client foundation is
being built on top of the event loop abstraction offered by [React](https://github.com/reactphp), an
event-oriented framework for PHP that aims to provide everything needed to create reusable libraries
-and long-running applications using an evented approach powered by non-blocking I/O.
+and long-running applications using an evented approach powered by non-blocking I/O. This library is
+partially tested on [HHVM](http://www.hhvm.com), but support for this runtime should be considered
+experimental.
Contributions are highly welcome and appreciated, feel free to open pull-requests with fixes or just
[report issues](https://github.com/nrk/predis-async/issues) if you encounter weird behaviors and
@@ -13,7 +13,7 @@
use Predis\Connection\Parameters;
use Predis\Profile\Factory as ProfileFactory;
-use Predis\Async\Connection\PhpiredisStreamConnection;
+use Predis\Async\Connection\StreamConnection;
/**
*
@@ -112,7 +112,7 @@ public function testConstructorWithConnectionArgument()
$parameters = $this->getParameters();
$eventloop = $this->getEventLoop();
- $connection = new PhpiredisStreamConnection($eventloop, $parameters);
+ $connection = new StreamConnection($eventloop, $parameters);
$client = new Client($connection, $eventloop);
@@ -135,7 +135,7 @@ public function testConnectionAndClientMustShareSameEventLoop()
$parameters = $this->getParameters();
$eventloop = $this->getEventLoop();
- $connection = new PhpiredisStreamConnection($eventloop, $parameters);
+ $connection = new StreamConnection($eventloop, $parameters);
$client = new Client($connection);
}

0 comments on commit f079f94

Please sign in to comment.