php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30038 Fatal error: Call to undefined function oci_new_collection()
Submitted: 2004-09-09 12:59 UTC Modified: 2004-09-10 17:59 UTC
From: v dot bolognesi at quanthink dot com Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 5.0.1 OS: Red Hat Linux release 9 (Shrike
Private report: No CVE-ID: None
 [2004-09-09 12:59 UTC] v dot bolognesi at quanthink dot com
Description:
------------
From phpinfo():

System:	
Linux cyber 2.4.20-18.9smp #1 SMP Thu May 29 6:55:05 EDT 2003 i686

Configure Command:
'./configure' '--prefix=/usr/local/php5-apache2' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-jpeg-dir=/usr/local/lib' '--with-jpeg' '--with-gd=/usr/local' '--with-zlib-dir=/usr/lib' '--with-png-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-oci8=/u01/app/oracle/product/10.1.0/client_1/' '--with-sybase-ct=/usr/local/' '--with-gettext' '--with-mysql' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-memory-limit' '--enable-shmop' '--enable-versioning' '--enable-calendar'



Reproduce code:
---------------
<?
$oracle_db = oci_connect("XXX", "YYYY", "AAA");
$onc = oci_new_collection($oracle_db, "T_XX");
	

ocilogoff($oracle_db);

?>

note: the type T_XX
is a sql type creaded with create type ... statement in
sqlplus.

Expected result:
----------------
at least recognize the function :-)
Also, I little of examples would be much appreciated.

Browsing the documentation, I found that several
collection-related features are available only in CVS.
But nor for oci_new_collection
(see: http://it.php.net/manual/en/function.oci-new-collection.php
it's in english) 
neither for ocinewcollection, which doesn't work
too.

Thank you

Actual result:
--------------
Fatal error: Call to undefined function oci_new_collection()






Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-10 15:25 UTC] tony2001@php.net
This error message means that PHP was compiled with Oracle client that doesn't support collections, therefore collections support was disabled.
Please, check it in phpinfo()'s output and figure why ./configure was unable to find collections support.
Also, your usage examples are welcome (if you're interested in making the documentation better, of course).
 [2004-09-10 17:21 UTC] v dot bolognesi at quanthink dot com
That's exactly the point... we compiled with oracle client not  the full stuff. 
Is there any doc stating which features are not supported by oracle client ?
We'll recompile our PHP soon with full Oracle and possibly I'll send some usage samples.
Thank you very much.
 [2004-09-10 17:59 UTC] tony2001@php.net
>Is there any doc stating which features are not supported 
>by oracle client ?
Probably @ oracle.com?

No bug -> bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 22:01:26 2024 UTC