-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Keep references to bound parameter values in oci8 driver #2434
Conversation
@@ -72,6 +72,15 @@ class OCI8Statement implements \IteratorAggregate, Statement | |||
protected $_paramMap = array(); | |||
|
|||
/** | |||
* Holds references to bound parameter values. | |||
* | |||
* This is a new requirement for PHP7's oci8 extension. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should mention here that this is just to prevent GC to kick in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ocramius better like this?
@Ocramius thanks for merging! |
Thanks |
will there be a 2.5.5 soon? |
@mmoll I'm probably allocating time next week to do a release. |
@Ocramius can you see if the proposed patch for PHP 7s' OCI8 in https://bugs.php.net/patch-display.php?bug_id=71148&patch=oci8-php7-bind&revision=latest removes the need for this workaround? |
Possibly, but it needs testing on that patch too (PHPT). The only negative side of this particular patch is that GC is shifted one level up (DBAL statement) |
For PHP7 compatibility. The previously failing tests pass now.
Closes #2261
Closes #2262
Closes #2386