From:             minetto at unochapeco dot rct-sc dot br
Operating system: Linux
PHP version:      4CVS-2003-07-16 (stable)
PHP Bug Type:     OCI8 related
Bug description:  Error in OCINewCursor();

Description:
------------
When i use the function OCINewCursor() a error happen and the server
cannot execute the script.

Reproduce code:
---------------
$db=ocilogon("user","pass","db");
$curs = OCINewCursor($db);

$cod_empresa = 15;
$codAcervo = 154173;

$stmt = OCIParse($db,"begin sp_per_consulta_obra($cod_empresa
,$codAcervo,:reg_sql);end;");
ocibindbyname($stmt,":reg_sql",&$curs,-1,OCI_B_CURSOR);
ociexecute($stmt);
ociexecute($curs);
if(OCIFetchInto($curs,&$reg_sql,OCI_ASSOC))
{
        echo "ok";
}
else 
{ 
        echo "error";
}

Expected result:
----------------
Show the data in tables.

Actual result:
--------------
If i comment the line : $curs = OCINewCursor($db); 
the page is found. The error seems to be in OCINewCursor.
My info :
php version is php4-STABLE-200307142330
Oracle Client is 9.2,
apache is apache-2.0.45-28790U90_2cl



-- 
Edit bug report at http://bugs.php.net/?id=24675&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24675&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24675&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24675&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24675&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24675&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24675&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24675&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24675&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24675&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24675&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24675&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24675&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24675&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24675&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24675&r=gnused

Reply via email to