Skip to content

Fix getServerVersion for OCI8 when assertions are disabled#4995

Merged
morozov merged 1 commit into
doctrine:3.1.xfrom
derrabus:bugfix/oci8-server-version
Nov 15, 2021
Merged

Fix getServerVersion for OCI8 when assertions are disabled#4995
morozov merged 1 commit into
doctrine:3.1.xfrom
derrabus:bugfix/oci8-server-version

Conversation

@derrabus

Copy link
Copy Markdown
Member
Q A
Type bug
BC Break no
Fixed issues #4994

Signed-off-by: Alexander M. Turek <me@derrabus.de>
@morozov morozov merged commit 821b4f0 into doctrine:3.1.x Nov 15, 2021
@derrabus derrabus deleted the bugfix/oci8-server-version branch November 15, 2021 16:44
@morozov morozov linked an issue Nov 15, 2021 that may be closed by this pull request

assert(preg_match('/\s+(\d+\.\d+\.\d+\.\d+\.\d+)\s+/', $version, $matches) === 1);
$result = preg_match('/\s+(\d+\.\d+\.\d+\.\d+\.\d+)\s+/', $version, $matches);
assert($result === 1);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reference: vimeo/psalm#4392.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OCI8 drivers notice on getServerVersion, "matches" is always undefined

2 participants