PHP Module does not work

I’m trying to use the PHP module (v. 2.1.0) on Windows with PHP 5.5.23 with Couchbase server 4.1.
It seems there is a problem since the PHP module uses the ASCII protocol instead of a binary protocol, here is an excerpt of the log:

DEBUG 788 - Running task: (conn_parse_cmd)
DEBUG >788 Read binary protocol data:
>788   0x47 0x45 0x54 0x20
>788   0x2f 0x70 0x6f 0x6f
>788   0x6c 0x73 0x2f 0x64
>788   0x65 0x66 0x61 0x75
>788   0x6c 0x74 0x2f 0x62
>788   0x73 0x2f 0x64 0x65
INFO 788: Invalid magic:  47
DETAIL 788: going from conn_parse_cmd to conn_closing

I have also tried with the Couchbase server 4.0, with the same result.

thanks in advance

That’s interesting. I think we’d need some more information because the “Invalid magic” seems to indicate a protocol violation, but I don’t think it’s because there’s an ASCII reply. Is it possible for you to give us a set of steps to reproduce? It may also be useful if you can give us a packet capture from tshark or the like. @avsej can probably have a look at it.

As you can see from the “binary” data it is actually an ASCII request:
0x47 0x45 0x54 0x20 0x2f 0x70 0x6f 0x6f 0x6c 0x73 0x2f 0x64 0x65 0x66 0x61 0x75 0x6c 0x74 0x2f 0x62 0x73 0x2f 0x64 0x65 -> GET /pools/default/bs/de

To reproduce this, just add the php_couchbase.dll in the PHP extension folder and libcouchbase.dll in the php.exe folder, then try a simple request:
$c=new CouchbaseCluster();
$b=$c->openBucket(); //here starts the above request
$b->set(‘key’,‘value’);