php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25924 PROBLEM TU USE ora_exec WITH ORACLE OWNER VARIABLE TYPE
Submitted: 2003-10-20 10:20 UTC Modified: 2003-10-20 10:36 UTC
From: fabio dot curti at vtin dot it Assigned:
Status: Not a bug Package: Oracle related
PHP Version: 4.2.1 OS: Red Hat Linux release 7.3
Private report: No CVE-ID: None
 [2003-10-20 10:20 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-20 10:35 UTC] sniper@php.net
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

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 21:01:29 2024 UTC