diff --git a/reference/oci8/functions/oci-bind-by-name.xml b/reference/oci8/functions/oci-bind-by-name.xml index 89ffe60ecc..3ec4c130db 100644 --- a/reference/oci8/functions/oci-bind-by-name.xml +++ b/reference/oci8/functions/oci-bind-by-name.xml @@ -785,6 +785,35 @@ print ''; succeed. + + + The PHP variable argument is a reference. Some + forms of loops do not work as expected: + + + + $value) { + oci_bind_by_name($stid, $key, $value); +} +]]> + + + + This binds each key to the location of $value, so all bound + variables end up pointing to the last loop iteration's + value. Instead use the following: + + + + $value) { + oci_bind_by_name($stid, $key, $myarray[$key]); +} +]]> + + + In PHP versions before 5.0.0 you must