Page MenuHomePhabricator

Fatal error when running the reindex procedure under php 5.3
Closed, ResolvedPublic

Description

Fatal error: Cannot use string offset as an array in /srv/mediawiki/php-1.26wmf6/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php on line 188

This only happens under 5.3, see http://3v4l.org/iCjju

Sample code if that goes missing:

$foo = array( 'a' => array( 'b' => array( 'c' => 'baz' ) ) );
var_dump( isset( $foo['a']['b']['c']['d']['e']['f'] ) );

It looks like it completed 99.9% of the reindexing before this fataled, but to be sure i'm re-running it from mw1017 which has hhvm and doesn't experience this issue.

Event Timeline

EBernhardson raised the priority of this task from to Needs Triage.
EBernhardson updated the task description. (Show Details)
EBernhardson added a project: CirrusSearch.
EBernhardson added a subscriber: EBernhardson.

Change 212500 had a related patch set uploaded (by EBernhardson):
Work arround broken isset in php 5.3

https://gerrit.wikimedia.org/r/212500

EBernhardson set Security to None.
EBernhardson updated the task description. (Show Details)

Change 212500 merged by jenkins-bot:
Work arround broken isset in php 5.3

https://gerrit.wikimedia.org/r/212500

EBernhardson claimed this task.