LinkBatch: Cast array keys to string when constructing TitleValue
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 1 Jun 2016 20:12:59 +0000 (22:12 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 1 Jun 2016 20:12:59 +0000 (22:12 +0200)
commit8e38519e071bfff1ea0ff7b65a4c60c5fe33d02d
tree3a4c9bbd2a9cca3c44545294881d6c6ea0431ed2
parentb33bc5ea64372728ee83d908b72a7bc8c77362fb
LinkBatch: Cast array keys to string when constructing TitleValue

If $dbkey consisted only of numbers (0-9), PHP converts it to an
integer when using it as array key, and then returns it as an integer
when iterating over the array. This is normally fine, but TitleValue
does strict type checking.

Follow-up to 682116760198a7420a809e0b9966ecdc63f1c67d.

Bug: T136615
Change-Id: I894800c3f5aec0c2d0c23f8adfa1b840495f3b16
includes/cache/LinkBatch.php