nuodb/nuodb-php-pdo — pull request #37 by thebithead (2014-07-17 15:49:50+00:00)
Title: Changes to make PHP PDO Driver work with the latest and older versions of NuoDB.

The latest version of NuoDB (not yet released) has a change in the C++ API (libNuoRemote). For the next release, the PHP PDO driver will need to call a new NuoDB::PreparedStatement.setString(int index, const char* string, size_t length) method when passing String parameters to prepared statements. For NuoDB release 2.0.4 and earlier, the PHP PDO driver will call NuoDB::PreparedStatement.setBytes(int index, int length, const void* bytes).

This change allows the NuoDB PHP PDO Driver to be built correctly with all versions of NuoDB (both released and upcoming changes). This change also allows the NuoDB PHP PDO Driver to dynamically detect the version of the C++ API (libNuoRemote) at runtime, and call the correct API.