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

A PHP extension for interfacing with Apache ZooKeeper

Results 32 php-zookeeper issues
Sort by recently updated
recently updated
newest added

version: 0.6.4 method: public Zookeeper::get ( string $path [, callable $watcher_cb = NULL [, array &$stat = NULL [, int $max_size = 0 ]]] ) : string Hello, I want...

//..... $this->zk = new Zookeeper(hostname); $service_list = $this->zk ->getChildren("/XXX"); for ($i=0; $i < count($service_list); $i++) { if($this->zk ->exists("/XXX/".$service_list[$i])){ $app_status_json = $this->zk->get("/XXX/".$service_list[$i]); //..... } } The get() will fail when the...

``` php class ZookeeperDemo extends Zookeeper { public function watcher( $i, $type, $key ) { echo "Insider Watcher\n"; // Watcher gets consumed so we need to set a new one...

Minimal script to reproduce is below. Steps to reproduce: 1) Start ZK Server, Start the client below 2) Stop Server, wait a moment, Start Server. 3) Upon reconnecting it will...

PHP Fatal error: Corrupted fcall_info provided to zend_call_function() in Unknown on line 0 env:php 7.1

When compiling with --disable-zookeeper-session the .so is a different file size, however, it still maintains the same session ID between reconnects. It's almost as if the client library is handling...

`$zk->get('/test', 'mywatch'); function mywatch($eventType, $eventState, $eventKey) { echo 'listen node'; print_r(func_get_args()); } ` i add node /test/a, or remove it, mywatch function not work, PHP7.0.24 NTS

How should zookeeper be connected in the case of a cluster?

Getting Exception "Zookeeper::exists(): error: invalid zhandle state", I am using Zookeeper for Kafka. Need help to find out where i am wrong.

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /root/CrondNG-FrontEnd/app/Services/Zookeeper.php on line 45 line 45 : ``` php $this->zookeeper = new Zookeeper($address); ```