Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCI8 - undefined index, CRITICAL ! #3766

Closed
michaljusiega opened this issue Dec 2, 2019 · 4 comments
Closed

OCI8 - undefined index, CRITICAL ! #3766

michaljusiega opened this issue Dec 2, 2019 · 4 comments

Comments

@michaljusiega
Copy link

Bug Report

Q A
BC Break yes
Version 2.10

Summary

Some changes in 2.10 make a BC break. On line 281 in OCI8Statement, the column is not valid in array, so throws a Notice: Undefined index: test.

Before upgrade to 2.10 the line looks like:
$column = $this->_paramMap[$column] ?? $column;

After upgrade do 2.10 is:
$column = $this->_paramMap[$column];

Current behaviour

Undefined index in array. The null coalesce operator was removed (WHY, who accept this ?)

obraz

How to reproduce

The EntityManager must be of OCI8 instance.

$query = $this->entityManager->getConnection()->prepare($prepareSQL);
$query->bindValue('test', 'testvalue');
$query->execute();

Expected behaviour

Should be work by using default column.

Gentlemen. A bit of partolite work with doctrine. You have very poor standards, these things should not appear. Remember: If something works, don't move it.

@michaljusiega michaljusiega changed the title OCI8 - undefined index OCI8 - undefined index, CRITICAL ! Dec 2, 2019
@Ocramius
Copy link
Member

Ocramius commented Dec 2, 2019

You have very poor standards

Uhm, no, the change was introduced because we do have good and also strict standards, and that was highlighted (although incorrectly) by analysis.

Meanwhile, closing as duplicate of #3738

@michaljusiega
Copy link
Author

DAFUQ. So now will be throws exception ? Nice ... your standards.

@michaljusiega
Copy link
Author

Nevermind.

@Ocramius
Copy link
Member

Ocramius commented Dec 2, 2019

Right, locking here: please refrain from opening further issues, if this is the level of discussion.

@Ocramius Ocramius reopened this Dec 2, 2019
@Ocramius Ocramius closed this as completed Dec 2, 2019
@doctrine doctrine locked as too heated and limited conversation to collaborators Dec 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants