Bug #3969

"Fatal error: Objects used as arrays.." with PHP 5.2.0

Added by Thomas Waggershauser about 13 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Won't have this time
Assignee:
Category:
-
Target version:
-
Start date:
2009-07-23
Due date:
% Done:

0%

Estimated time:
Has patch:

Description

I spend some time now, to understand this error:

Fatal error: Objects used as arrays in post/pre increment/decrement
must return values by reference in /Users/air/Sites/
typo3_src-4.3.0alpha3/typo3/sysext/fluid/Classes/ViewHelpers/Form/
SelectViewHelper.php on line 148

It seems to be a php-problem, but I don't really understand, what this
has to do with references :(

This issue occured using php 5.2.0, after update to 5.2.9, it worked.

-

This is not supposed to be like this, cause TYPO3 only requires 5.2.0 IIRC.

It's something that can be fixed quite easily, e.g. from
foreach ($this->arguments['options'] as $domainObject) {

to

$options = $this->arguments['options']
foreach ($options as $domainObject) {

#1

Updated by Christian Müller about 13 years ago

As far as I know this was actually a problem in some PHP releases, so an PHP update fixing this bug seems OK to me. I would not like to make workaround code for a PHP bug.

#2

Updated by Steffen Kamper about 13 years ago

We considered in TYPO3 core not to make workarounds for PHP Bugs - these will be fixed in later releases anyway

#3

Updated by Jochen Rau about 13 years ago

  • Status changed from New to Closed
  • Assignee set to Jochen Rau
  • Priority changed from Should have to Won't have this time
#4

Updated by Bastian Waidelich almost 13 years ago

  • Project changed from 534 to TYPO3.Fluid
  • Category deleted (432)

Also available in: Atom PDF