Bug #70302 [Com]: Parameter bind with OCI8 is broken - always last parameter value bound to all

From: Date: Tue, 19 Jul 2016 06:44:23 +0000
Subject: Bug #70302 [Com]: Parameter bind with OCI8 is broken - always last parameter value bound to all
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202412@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70302&edit=1 ID: 70302 Comment by: mohammad at zeineddin dot name Reported by: deepdiver at owncloud dot com Summary: Parameter bind with OCI8 is broken - always last parameter value bound to all Status: No Feedback Type: Bug Package: OCI8 related Operating System: Linux PHP Version: 7.0.0beta3 Assigned To: sixd Block user comment: N Private report: N New Comment: 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! Previous Comments: ------------------------------------------------------------------------ [2015-09-20 04:22:19] 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. ------------------------------------------------------------------------ [2015-09-07 01:13:05] sixd@php.net See my comment on [2015-08-23 23:08 UTC] ------------------------------------------------------------------------ [2015-09-07 01:12:18] sixd@php.net 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. ------------------------------------------------------------------------ [2015-09-06 04:22:18] 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. ------------------------------------------------------------------------ [2015-08-24 20:43:54] deepdiver at owncloud dot com Results are the same with master as of just now. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=70302 -- Edit this bug report at https://bugs.php.net/bug.php?id=70302&edit=1

« previous php.bugs (#202412) next »