Patches

Pull Requests

History

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
Your subject says "OCI", the category says "PDO_OCI" but the sample code indicates you might mean OCI8.
Can you clarify and also supply a runnable testcase that doesn't depend on any 3rd party code?
If this is OCI8, is the problem related to one of the known diffs? Try running the test suite.

Your non-failing, pure OCI8 testscript didn't use an array for A,B,C unlike the earlier code. Try changing the OCI8 test to be closer to the original. And then review the test suites diffs to see if the problem is related to one of the known test failures.

You logged this with 7.0.0beta3. Can you test with master? The most recent OCI8 fixes did not get into Beta3.

[2015-08-24 20:43 UTC] deepdiver at owncloud dot com

Results are the same with master as of just now.

[2015-09-06 04:22 UTC] php-bugs at lists dot php dot net

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.

[2016-07-19 06:44 UTC] mohammad at zeineddin dot name

I think this issue is known, and explained in details in the documentation in http://php.net/manual/en/function.oci-bind-by-name.php in "Example #3 Binding with a foreach() loop", if you can see a comments says "oci_bind_by_name($stid, $key, $val) does not work because it binds each placeholder to the same location: $val instead use the actual location of the data: $ba[$key]", so if you bind by name the same variable name, it will only use the last variable value, which is somehow wrong, it should take a copy of the variable value, and use it, not the last value of the variable!