andreiz / php-zookeeper

A PHP extension for interfacing with Apache ZooKeeper
Other
449 stars 215 forks source link

Segment fault when calling get() in a loop #37

Open yangruihaha opened 10 years ago

yangruihaha commented 10 years ago

//..... $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.

Timandes commented 6 years ago

Would you try newest version?