Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: six plus three?
(Example: nine)

The Note You're Voting On

gil at squidoo dot com
18 years ago
There is a tiny bug in the Aggregator class when using the flush() function. The reference to $connections should be $this->connections.

Change:

public function flush() {
$result = false;
for ($i = 0; $i < count($connections); $i++) {
if ($this->connections[$i]->flush()) {
$result = true;
}
}
return $result;
}

To:

public function flush() {
$result = false;
for ($i = 0; $i < count($this->connections); $i++) {
if ($this->connections[$i]->flush()) {
$result = true;
}
}
return $result;
}

<< Back to user notes page

To Top