Lines Matching refs:id
93 $id = (int) $result[0];
98 function () use ($id) {
99 return $this->cancel($id);
124 // See: https://bugs.php.net/bug.php?id=61141
149 $id = (int) $entry['handle'];
150 $this->handles[$id] = $entry;
155 $this->delays[$id] = microtime(true) + ($entry['request']['client']['delay'] / 1000);
170 private function removeProcessed($id)
172 if (isset($this->handles[$id])) {
175 $this->handles[$id]['handle']
177 curl_close($this->handles[$id]['handle']);
178 unset($this->handles[$id], $this->delays[$id]);
185 * @param int $id Handle ID to cancel and remove.
189 private function cancel($id)
192 if (!isset($this->handles[$id])) {
196 $handle = $this->handles[$id]['handle'];
197 unset($this->delays[$id], $this->handles[$id]);
208 foreach ($this->delays as $id => $delay) {
210 unset($this->delays[$id]);
213 $this->handles[$id]['handle']
222 $id = (int) $done['handle'];
224 if (!isset($this->handles[$id])) {
229 $entry = $this->handles[$id];
245 $this->removeProcessed($id);