From: jlevy at imerica dot com Operating system: Redhat, Debian PHP version: 5.1.4 PHP Bug Type: Oracle related Bug description: oci_bind_array_by_name clobbers input array when using SQLT_AFC, AVC
Description: ------------ Please note that this relates to 5.1.2, not 5.1.4. Configuration: Box #1 - PHP 5.1.2 compiled against oracle instant client 10.x, Debian Box #2 - PHP 5.1.2 compiled against oracle full libs, Redhat Calling oci_bind_array_by_name will append extraneous members to input array if using SQLT_AFC or SQLT_AVC (other types untested due to lack of due dilligence) Sample script to reproduce bug at pastebin.com, see URL below. Reproduce code: --------------- http://http://pastebin.com/735456 Expected result: ---------------- Array ( [0] => LH [1] => JC [2] => PJ ) Array ( [0] => LH [1] => JC [2] => PJ ) Array ( [0] => LH [1] => JC [2] => PJ ) Actual result: -------------- Array ( [0] => LH [1] => JC [2] => PJ ) Array ( [0] => LHJCPJ [1] => JCPJ [2] => PJ ) Array ( [0] => LHJCPJ [1] => JCPJ [2] => PJ [3] => JCPJ [4] => PJ ) -- Edit bug report at http://bugs.php.net/?id=37581&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37581&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37581&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37581&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37581&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37581&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37581&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37581&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37581&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37581&r=support Expected behavior: http://bugs.php.net/fix.php?id=37581&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37581&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37581&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37581&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37581&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37581&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37581&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37581&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37581&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37581&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37581&r=mysqlcfg