From: christopher dot jones at oracle dot com Operating system: Linux x86 PHP version: 5.2.3 PHP Bug Type: OCI8 related Bug description: Statement cache is flushed too frequently
Description: ------------ In oci_statement.c both calls to OCIStmtRelease() pass the OCI_STRLS_CACHE_DELETE flag. This means the statement cache (configure d with oci8.statement_cache_size) is flushed. There should be no reason to flush the cache at these points. The fix is to change both OCI_STRLS_CACHE_DELETE flags to OCI_DEFAULT. With this change even a simple script repeating one statement in a loop proves Oracle is able to use the cache, reducing the number of times the statement is parsed by the DB. The change will also benefit users of persistent connections. -- Edit bug report at http://bugs.php.net/?id=41594&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41594&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41594&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41594&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41594&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41594&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41594&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41594&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41594&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41594&r=support Expected behavior: http://bugs.php.net/fix.php?id=41594&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41594&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41594&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41594&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41594&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41594&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41594&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41594&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41594&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41594&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41594&r=mysqlcfg