Array
Buffistas Building a Better Board ++
Do you have problems, concerns, or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.
Array
Support is bringing the site up bit by bit, I guess.
Array
eta: I posted the word "test". The board converted it to "Array". I'm seeing if this part holds, when I edit it in.
eta 2
ita, should we just stay out for longer?
Well, I kicked y'all out, so that should have answered that.
Are we OK now?
The Plesk upgrade went south (which was why the site was down entirely), and then when it came back up, there was strangeness.
For the techheads:
foreach($chunks as $chunk) {
$this->id = 0;
$this->content = $chunk;
$this->_save();
}
Broke, because $chunk was suddenly an array. No code changes, just a PHP upgrade to 4.3.10.
So I tweaked it to this:
foreach($chunks as $chunk) {
$this->id = 0;
$this->content = $chunk[0];
$this->_save();
}
But I don't like it because I don't understand it.
Yeah, it appears something changed in 4.3.10 re: foreach
Further reading indicates they backported some code from PHP 5.0. Your workaround is a solution to this problem.
How freaking irritating. I'll go back and change it to use the key/val logic, just so it doesn't seem so arbitrary.
Tossers.
Do you know if the server is running Zend Optimizer? It sounds like upgrading to ZO 2.5.7 fixes this issue as well.