Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
database system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Jun 2019 at 05:51 UTC
Updated:
22 Dec 2025 at 22:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
geoffreyr commentedRemoved the docroot/ prefix, but looks sound and in line with other fixes such as this.
Comment #3
geoffreyr commentedComment #4
sjerdoLooks good to me, but I think we need a test here.
Comment #5
sjerdoComment #6
ciss commentedI'd argue that this has nothing to do with PHP 7.2. The issue covers a bug that was only surfaced by the compatibility checks and should instead act as backport issue for #1476782: DatabaseStatementPrefetch::current PHP function array_unshift() are used incorrectly. Setting to major to match parent priority.
Comment #7
iarc13 commentedarray_unshift() returns the new number of elements. So why not use count() instead if there are no new values being appended to it?
Comment #8
sjerdoBackport of test and patch in #1476782: DatabaseStatementPrefetch::current PHP function array_unshift() are used incorrectly
Comment #10
sjerdoFixed field type for job column in test schema
Comment #11
sjerdoFixed interdiff between patch 8 and 9
Comment #12
sjerdoComment #13
poker10 commentedThanks for the patch. I have tested it and it is working as expected. It is a straight backport of the D8 issue and the test failures are present as in D8. This only affects SQLITE, see: https://www.drupal.org/comment/5740380. The patch also has tests, so I am setting this as RTBC.
Comment #14
mcdruid commentedhttps://git.drupalcode.org/project/drupal/-/blob/9.4.5/core/lib/Drupal/C...
Looks good, thanks!
Comment #16
poker10 commentedThanks all!