php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24653 Error in OCINewCursor
Submitted: 2003-07-14 17:59 UTC Modified: 2003-07-16 14:26 UTC
From: minetto at unochapeco dot rct-sc dot br Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4CVS-2003-07-14 (stable) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 - 15 = ?
Subscribe to this entry?

 
 [2003-07-14 17:59 UTC] minetto at unochapeco dot rct-sc dot br
Description:
------------
When i use the link :

http://www.unochapeco.edu.br/biblioteca/php/pbasbi2.php?codAcervo=115621

the page is not find. If i use :

http://www.unochapeco.edu.br/biblioteca/php/pbasbi2.php?codacervo=115621

with (codacervo=) works.

My info :

PHP Version 4.3.3RC2-dev
Conectiva Linux 9.0
Oracle client 9.2


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-14 19:07 UTC] minetto at unochapeco dot rct-sc dot br
In /var/log/apache/error_log :

/root/php4-STABLE-200307102330/main/main.c(1718) : Bailed out without a bailout address!

I dont?t know if is related.
 [2003-07-15 08:33 UTC] minetto at unochapeco dot rct-sc dot br
I find where is the problem.
In 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";
}

If i comment the line : $curs = OCINewCursor($db); 
the page is found. The error seems to be in OCINewCursor.
My php version is php4-STABLE-200307142330, Oracle Client is 9.2, apache is apache-2.0.45-28790U90_2cl.
Thanks
 [2003-07-16 14:26 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

See bug #24657
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 20:01:30 2024 UTC