Repository navigation
IBX-11939: Merged branch '5.0' into 6.0 - #84
Merged
Merged
Conversation
Core points session.handler at its native file handler, whose constructor calls ini_set(). On Symfony 7, Doctrine's PdoSessionHandlerSchemaListener loads the handler whenever the ORM schema is generated, so a test that builds the schema (e.g. AbstractSchemaAlignmentTestCase in a package with ORM entities) fails once PHPUnit has printed output: "Session ini settings cannot be changed after headers have already been sent". Sessions are mocked in the test kernel, so the plain native handler does.
…hema alignment test (#82) MySQL can't store a default on a TEXT or BLOB column, so DBAL creates the column without the declared one. DBAL 2.13 left the difference out of its ALTER statements; DBAL 3's comparator reports it as 'ALTER TABLE ibexa_catalog CHANGE query_string query_string LONGTEXT NOT NULL', which changes nothing. MariaDB stores the default, so it's still compared there.
This was referenced Nov 3, 2026
…nt test schema.yaml gives a decimal column's default as a number, like ibexa_customer_group.global_price_rate's 0, while the databases read it back as a string: '0.00' on MySQL and MariaDB, '0' on PostgreSQL and SQLite. DBAL 4 compares columns by their declaration, where the number isn't quoted and the string is, so the column was reported on every platform. DBAL 3 didn't report it.
Steveb-p
marked this pull request as ready for review
November 4, 2026 10:27
ibexa-workflow-automation-1
Bot
requested review from
ViniTou,
alongosz,
barw4,
bnowak,
ciastektk,
konradoboza,
mikadamczyk,
tbialcz and
wiewiurdp
and removed request for
a team
November 4, 2026 10:28
konradoboza
approved these changes
Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Caution
This is a merge pull request
Related PRs:
Conflict resolutions (
AbstractSchemaAlignmentTestCaseand its two tests, which 6.0 rewrote for DBAL 4's schema editors):AbstractSchemaAlignmentTestCase: 6.0's as is. IBX-11939: Ignored declared TEXT and BLOB defaults on MySQL in the schema alignment test #82'signoreTextDefaultOnMySql()isn't needed on DBAL 4, which compares columns by their declaration SQL, and on MySQL that leaves a TEXT/BLOB default out. Same as the overlong string rule 6.0 already dropped.AbstractSchemaAlignmentTestCaseTest: IBX-11939: Ignored declared TEXT and BLOB defaults on MySQL in the schema alignment test #82's tests, written with the schema editors. MySQL readsalignment_text_default.bodyback without its default and nothing is reported, MariaDB keeps comparing it.SchemaAlignmentNormalizationTest: MariaDB told apart from MySQL, as in IBX-11939: Ignored declared TEXT and BLOB defaults on MySQL in the schema alignment test #82. The newalignment_text_defaultcase reads back the same everywhere on DBAL 4, likealignment_long_string.#81's session handler parameter comes in as is; core 6.0 still defaults
ibexa.session.handler_idtosession.handler.native_file.On top of the merge, one 6.0-only commit: decimal defaults are compared as numbers.
schema.yamlgivesibexa_customer_group.global_price_rate's default as0, the databases read it back as'0.00'(MySQL, MariaDB) or'0'(PostgreSQL, SQLite), and DBAL 4 compares columns by their declaration, where the number isn't quoted and the string is. Neither DBAL's platform comparators nor a string default inschema.yamlwould help: the former only normalize collations, and the latter would just move the difference to PostgreSQL and SQLite. It madeSchemaAlignmentTestfail on both install paths in every kernel with product-catalog (e.g. measurement's MySQL jobs). DBAL 3 didn't report it, so 5.0 needs nothing.Checked locally: unit tests, PHPStan, CS, and the integration suite on SQLite, MySQL 8.0, MariaDB 10.11 and PostgreSQL 16.