#25924 [Opn->Bgs]: PROBLEM TU USE ora_exec WITH ORACLE OWNER VARIABLE TYPE
ID: 25924
Updated by: sniper@php.net
Reported By: fabio dot curti at vtin dot it
-Status: Open
+Status: Bogus
Bug Type: Oracle related
Operating System: Red Hat Linux release 7.3
PHP Version: 4.3.2
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
And use the OCI extension.. --with-oci8
Previous Comments:
------------------------------------------------------------------------
[2003-10-20 10:20:54] fabio dot curti at vtin dot it
Description:
------------
The call to the following stored procedure (oracle 8.1.7)
from php4.2.1 (as ampache module) does not work with a OWNER ORACLE
TYPE VARIABLE.
HOW CAN I DO ??...DOES ORACLE EXTENSION FUNCTION SUPPORT DIFFERENT
TYPES OF VARIABLE ??
Reproduce code:
---------------
PHP CODE
ora_parse($this->db_cursor,"begin
Top_Queries_Pkg.EstraiTopQuery(:O_S_QString); end;");
ora_bind($this->db_cursor, "top_query", ":O_S_QString",80000000,
ORA_BIND_OUT);
ora_exec($this->db_cursor);
where STORE PROCEDURE IS
procedure EstraiTopQuery (O_S_QString Out string_array_huge)
where string_array_huge is
CREATE OR REPLACE TYPE "STRING_ARRAY_HUGE"
AS VARRAY (4000) OF
VARCHAR2(2000)
Expected result:
----------------
I EXPECTED A STRING...VERY LONG BUT A STRING.
Actual result:
--------------
Warning: Ora_Exec failed (ORA-06550: line 1, column 7: PLS-00306: wrong
number or types of arguments in call to 'ESTRAITOPQUERY' ORA-06550:
line 1, column 7: PL/SQL: Statement ignored -- while processing OCI
function OEXEC/OEXN) in
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25924&edit=1
Thread (2 messages)