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

Segment fault when calling get() in a loop

Open yangruihaha opened this issue 10 years ago • 1 comments

//..... $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 loop count grows.

yangruihaha avatar Oct 15 '14 09:10 yangruihaha

Would you try newest version?

Timandes avatar May 01 '18 12:05 Timandes