From: c_peruma at qualcomm dot com
Operating system: Windows XP Professional
PHP version: 4.4.4
PHP Bug Type: OCI8 related
Bug description: PHP throws ociexecute(): supplied arg is not a valid
OCI8-Stmt resource
Description:
------------
Our application page loads with an OCI error.
After this the application froze and We try to re-login the page gets
loaded properly.But we are not able to reproduce the problem. But it
happens at very frequently, but dont know what causes the problem.
Error seen was:
Warning: ociexecute(): supplied argument is not a valid OCI8-Statement
resource
Fatal error: Call to a member function on a non-object.
The piece of code giving the error is :
// Create a collecting type in Oracle
// that can hold around 10000 Phone numbs.
$szType="CREATE OR REPLACE TYPE PHONELIST AS VARRAY(10000) OF
VARCHAR(15)";
$qHandle=OCIParse($szType,$ORACLE);
OCIExecute($qHandle);
// Insert the Selected Phone numbers
$collection = OciNewCollection($ORACLE,"PHONELIST");
for($i=1 ; $i <= $nCount ; $i++) {
$collection->append($szMIN[$i]);
}
We get error in the OCIExecute line . No error was reported for Oracle
Connection made by OCINLogon.It seems that oracle parse has failed. But
parse is not giving any error though.
And followed by fatal error in OCINewCollection().
I found this related to the bug information found in.
http://bugs.php.net/bug.php?id=3910
Expected result:
----------------
Page should get loaded properly.
Actual result:
--------------
Error seen was:
Warning: ociexecute(): supplied argument is not a valid OCI8-Statement
resource
Fatal error: Call to a member function on a non-object.
--
Edit bug report at http://bugs.php.net/?id=39468&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=39468&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=39468&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=39468&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39468&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=39468&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39468&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39468&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39468&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39468&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39468&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=39468&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=39468&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39468&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39468&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39468&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39468&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39468&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39468&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39468&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39468&r=mysqlcfg