From: alien at mosfasad dot ru Operating system: win xp PHP version: 5.2.0 PHP Bug Type: PDO related Bug description: ORA-03131: an invalid buffer was provided for the next piece
Description: ------------ when i execute procedure(ORACLE 10 R2) with out param. i catch error in the version 5.1.4 all is ok. Procedure wb_utils.ReportOrder is VALID ! PHP Version 5.2.1-dev PHP API 20041225 PHP Extension 20060613 Zend Extension 220060519 OCI Revision $Revision: 1.269.2.16.2.26 $ PDO Driver for OCI 8 and later: enabled Reproduce code: --------------- $sSql = 'call wb_utils.ReportOrder(:var0,:out0,:var1,:var2,:var3)'; $aArguments = Array ( [var0] => 24277102 [var1] => [var2] => args [var3] => cols ) $oStat = $this->oPDOs->prepare($sSql); ..... $oStat->bindParam('out0',$this->Out0, PDO::PARAM_STR,4096); ..... $oStat->execute($aArguments); Expected result: ---------------- [13-дек-2006 19:49:57] PHP Fatal error: Uncaught in C:\prj\web\include\db.2.inc.php at 410 code :pdo_execute Param [HY000,SQLSTATE[HY000]: General error: 3131 OCIStmtExecute: ORA-03131: an invalid buffer was provided for the next piece (ext\pdo_oci\oci_statement.c:142), call wb_utils.ReportOrder(:var0,:out0,:var1,:var2,:var3) ] thrown in C:\prj\web\include\db.2.inc.php on line 410 Actual result: -------------- execute procedure and get out param -- Edit bug report at http://bugs.php.net/?id=39820&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39820&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39820&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39820&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39820&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39820&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39820&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39820&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39820&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39820&r=support Expected behavior: http://bugs.php.net/fix.php?id=39820&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39820&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39820&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39820&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39820&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39820&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39820&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39820&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39820&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39820&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39820&r=mysqlcfg