Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
PHP 5.3 returns true on isset($arrayname['hash']) when $arrayname is a string. This causes an invalid argument supplied for foreach error in base.inc on line 215.
Comment | File | Size | Author |
---|---|---|---|
#2 | fix_invalid_argument_for_foreach-1224730-2.patch | 1.07 KB | pdrake |
#1 | fix_invalid_argument_for_foreach-1224730-1.patch | 575 bytes | pdrake |
Comments
Comment #1
pdrake CreditAttribution: pdrake commentedPatch for 7.x-3.x.
Comment #2
pdrake CreditAttribution: pdrake commentedThis also occurs on line 268. The attached patch fixes both.
Comment #3
dawehnerUpdate status.
I set this to needs work, because this actually shows a developing error. Contains has to be an array by definition, at least from my perspective, so if someone is doing it wrong, it should be triggered.
Could you find out which option_definition uses 'contains' but has just a string? This would really help.
Comment #4
MustangGB CreditAttribution: MustangGB commented