chandrasis / php-handlersocket

Automatically exported from code.google.com/p/php-handlersocket
0 stars 0 forks source link

HandlerSocket::openIndex with $filter = array() cause silent error #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. $hs->openIndex( 1, 'some_db', 'some_table', 'PRIMARY', 'some_field', [] );
2. $hs->openIndex( 1, 'some_db', 'some_table', 'PRIMARY', 'some_field' );
3. $hs->openIndex( 1, 'some_db', 'some_table', 'PRIMARY', 'some_field', null );

What is the expected output? What do you see instead?
1. Expected result - OK, but php got 502 from nginx, in nginx logs "...upstream 
sent unsupported FastCGI protocol version: 0 while reading upstream...", no any 
errors in any logs
2. Expected result - OK, got - OK
3. Expected result - OK, got - OK

What version of the product are you using? On what operating system?
PHP 5.4.12-1
php-handlersocket-0.3.1
Linux http 3.2.0-4-rt-amd64 #1 SMP PREEMPT RT Debian 3.2.35-2 x86_64 GNU/Linux
5.5.30-30.1-log Percona Server

Please provide any additional information below.
In php-handlersocket wiki, method HandlerSocket::openIndex arg $filter default 
value shown like array(), but it wrong?

Original issue reported on code.google.com by pioneer3...@gmail.com on 10 Mar 2013 at 6:49