Postponed (maintainer needs more info)
Project:
Drupal core
Version:
main
Component:
database system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2014 at 07:58 UTC
Updated:
9 Feb 2026 at 19:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerComment #2
chx commentedSure, why not. But won't this make the 'php' driver appear in the installer? If not, what keeps it from? I honestly do not know, I never even followed really the move of fake connection from migrate to driver.
Comment #3
dawehnerThis function is somehow called when you have a transaction in your code. My goal is to use a fake connection for one of the tests, which uses a transaction internally.
Comment #4
dawehnerIt seems not trivial support transaction support in PHP.
Comment #5
chx commentedSure it is: save the whole database array and on rollback put it back. It's good enough. It's not MVCC but then again you only have a single client with a single thread so you are good.
Comment #6
dawehnerWell, I tried to get the test suite for transactions running, and here we go. This was fun!
Comment #8
dawehnerThe test relied on public properties.
Comment #9
chx commentedwhy not just
return end($this->databaseContentsStack);?end(array_keys($this->databaseContentsStack))would perhaps be better but that's a strict notice. However,end((array_keys($this->databaseContentsStack)))works just fine. (Madness!) Compare http://3v4l.org/CNLVT to http://3v4l.org/168fi.Comment #10
chx commentedApparently (( )) is classified as a https://bugs.php.net/bug.php?id=55222 bug so let's not do that.
Comment #11
dawehnerSo let's try to improve the rest of the code.
Comment #12
chx commentedDid you test this patch doesn't make the driver show up in the installer?
Also in popCommittableTransactions
You are removing the second-to-last entry? But why? Anyways, this is best done with
array_splice($this->databaseContentsStack, -2, 1)Comment #13
dawehnerJust did, it does not appear.
Well, the idea is to commit the one with $name, I guess the new code is a bit clearer.
Comment #15
jhedstromPatch no longer applies. Also tagging for an IS update since the IS is currently blank :)
Comment #30
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #32
smustgrave commentedwanted to bump 1 more time if still needed?