note 61990 added to function.oci-bind-by-name
| From: | ehsmeng at osu1 dot php dot net | Date: | Thu, 16 Feb 2006 20:43:04 +0000 |
| Subject: | note 61990 added to function.oci-bind-by-name | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-103864@lists.php.net to get a copy of this message | ||
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?!
}
...
----
Server IP: 64.246.30.37
Probable Submitter: 83.79.77.132
----
Manual Page -- http://www.php.net/manual/en/function.oci-bind-by-name.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61990
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61990&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61990&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61990&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61990&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61990&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61990&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61990&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61990&report=yes
Search -- http://master.php.net/manage/user-notes.php