From: alien at mosfasad dot ru
Operating system: WIN2000
PHP version: 5.1.2
PHP Bug Type: PDO related
Bug description: error when i call execute method with param
Description:
------------
when i insert or update table with bind variable, i get bad result =(.
All values of bind variables change to last bind variable =(
___
If i use method bindParam apache crush =(
____
i take last cvs version of php, but not happened =(
____
Windows 2000 SP4 (5.00.2195)
Apache/2.0.52 (Win32) PHP/5.1.3-dev
PDO drivers sqlite2, sqlite, oci
OCI8 $Revision: 1.269.2.10 $
_____
php_pdo_oci8.dll - Oracle (OCI) driver for PDO(5.1.3.3)
_____
Reproduce code:
---------------
$oPdo = new PDO('oci:dbname=dinv','I3','XXXXXX');
$oStat = $oPdo->prepare("INSERT INTO REGISTRY (name, value) VALUES (?,
?)");
$oStat->execute(array('test1','test2'));
Expected result:
----------------
Table REGISTRY has new row with values:
-- | name | value
1 | test2 | test2
Actual result:
--------------
Table REGISTRY has new row with values:
-- | name | value
1 | test1 | test2
--
Edit bug report at http://bugs.php.net/?id=36643&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=36643&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=36643&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=36643&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36643&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=36643&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36643&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36643&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36643&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36643&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36643&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=36643&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=36643&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36643&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36643&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36643&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36643&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36643&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36643&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36643&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36643&r=mysqlcfg