|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-16 14:27 UTC] sniper@php.net
[2003-07-21 01:28 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 16:00:01 2025 UTC |
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