Bug #8749
SelectViewHelper throws fatal error on PHP 5.2
Status: | Resolved | Start date: | 2010-07-08 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Bastian Waidelich | % Done: | 100% |
|
Category: | ViewHelpers | |||
Target version: | - | |||
Has patch: | Affected Flow version: |
Description
Calling the SelectViewHelper leads to the following
Fatal Error: Objects used as arrays in post/pre increment must return value by reference in ... SelectViewHelper on Line 171.
History
#1 Updated by Jochen Rau about 5 years ago
See comments in reference
#2 Updated by Bastian Waidelich about 5 years ago
- Status changed from New to Accepted
- Assigned To set to Bastian Waidelich
- Branch set to v4 + v5
#3 Updated by Bastian Waidelich about 5 years ago
- Status changed from Accepted to Needs Feedback
Hi Jochen and sorry for the late reaction.
I just tried to reproduce this and failed..
<f:form.select options="{objects}"...
with {objects} being an ArrayObject of objects does not trigger an error on PHP 5.2.6.
Do you have an example at hand?
#4 Updated by Bastian Waidelich about 5 years ago
- Assigned To changed from Bastian Waidelich to Jochen Rau
#5 Updated by Bastian Waidelich almost 5 years ago
Bastian Waidelich wrote:
I just tried to reproduce this and failed..
[...]
with {objects} being an ArrayObject of objects does not trigger an error on PHP 5.2.6.
..of course I failed - it only occurs on 5.2.0
changing
foreach ($this->arguments['options'] as $key => $value) {
to
$options = $this->arguments['options']; foreach ($options as $key => $value) {
should fix this.
#6 Updated by Karsten Dambekalns almost 5 years ago
- Branch changed from v4 + v5 to v4
Since it's only PHP 5.2 I change the branch to v4 only.
#7 Updated by Bastian Waidelich over 4 years ago
- Assigned To changed from Jochen Rau to Bastian Waidelich
I'll take care
#8 Updated by Bastian Waidelich over 4 years ago
- Status changed from Needs Feedback to Resolved
- % Done changed from 0 to 100
Applied in changeset r3362