php-zookeeper icon indicating copy to clipboard operation
php-zookeeper copied to clipboard

Method 'set' can only handle string-typed value

Open Timandes opened this issue 9 years ago • 0 comments

After i tried this:

<?php
$zk = new Zookeeper("localhost:2181");
$zk->set('/test', array(1));

i got a PHP warning:

PHP Warning:  Zookeeper::set() expects parameter 2 to be string, array given in /home/xxx/zk.php on line 4
PHP Stack trace:
PHP   1. {main}() /home/xxx/zk.php:0
PHP   2. Zookeeper->set() /home/xxx/zk.php:4

Is there any plan to support various types just like Memcached::set?

Timandes avatar Apr 22 '15 05:04 Timandes