From: manuel at pincho dot org Operating system: Linux PHP version: 4.3.6 PHP Bug Type: OCI8 related Bug description: OCITypeByName: OCI-21522 with two connections
Description: ------------ When I use ocinewcollection and I have to connections or more open in the same php with the same user,password and SID ; ocinewcollection fails with Warning: ocinewcollection(): OCITypeByName: OCI-21522: attempted to use an invalid connection in OCI (object mode only) Oracle version is 9.2.0.4 PHP 4.3.6: './configure' '--with-apache=/usr/local/src/apache_1.3.29' '--with-oci8=/u01/app/oracle/product/9.2.0' '--with-mnogosearch=/usr/local/mnogosearch' '--with-mysql' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-zlib-dir' '--enable-track-vars' '--enable-sigchild' '--enable-xml' '--enable-inline-optimization' '--enable-memory-limit' '--disable-debug' Reproduce code: --------------- // CREATE OR REPLACE TYPE local_id_array AS TABLE OF NUMBER(11); $db =OCIPLogon('XXX','XXX','XXX'); $db2=OCIPLogon('XXX','XXX','XXX'); $coll = ocinewcollection ($db2,'LOCAL_ID_ARRAY'); Actual result: -------------- Warning: ocinewcollection(): OCITypeByName: OCI-21522: attempted to use an invalid connection in OCI (object mode only) -- Edit bug report at http://bugs.php.net/?id=28944&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28944&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28944&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28944&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28944&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28944&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28944&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28944&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28944&r=support Expected behavior: http://bugs.php.net/fix.php?id=28944&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28944&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28944&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28944&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28944&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28944&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28944&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28944&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28944&r=float