note 61990 deleted from function.oci-bind-by-name by sixd

From: Date: Sat, 14 Nov 2009 00:36:04 +0000
Subject: note 61990 deleted from function.oci-bind-by-name by sixd
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162890@lists.php.net to get a copy of this message
Note Submitter: ehsmeng ---- If you do a wrapper for these functions there is a bug I found on php5.1.1 / oracle 9 / windows xp. see the section with oci_bind_by_name. function db_layer_insert_1_row ($dbquery, $bindvar = array()) { global $_db_layer_database; global $_db_layer_lasterror; if (false === ($stid = oci_parse($_db_layer_database, $dbquery))) { db_layer_lasterror (); return -1; } // Bind variables. NOTE substituting $bindvar[$bcol] with $bval causes // all variables to be set to the last value of $bval?!?! foreach ($bindvar as $bcol => $bval) { oci_bind_by_name($stid, $bcol, $bindvar[$bcol]); //$bval); <- bug?! } ...

« previous php.notes (#162890) next »