#38704 [Opn->Fbk]: OCI-Lob::load returns empty string
| From: | tony2001@php.net | Date: | Mon, 04 Sep 2006 08:31:43 +0000 |
| Subject: | #38704 [Opn->Fbk]: OCI-Lob::load returns empty string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-101684@lists.php.net to get a copy of this message | ||
ID: 38704
Updated by: tony2001@php.net
Reported By: terry dot cullen at uq dot edu dot au
-Status: Open
+Status: Feedback
Bug Type: Oracle related
Operating System: Solaris 10x86
PHP Version: 5.1.6
New Comment:
Please install OCI8 1.2.2 from PECL.
Previous Comments:
------------------------------------------------------------------------
[2006-09-04 01:54:12] terry dot cullen at uq dot edu dot au
Description:
------------
When fetching an OCI-Lob from an oracle database, the OCI-Lob::load
method returns an empty string on solaris x8610.
The istanceof function fails as well because the the '-' in OCI-Lob.
Configure flags:
'./configure' '--prefix=/opt/local/php5'
'--with-apxs2=/opt/local/apache/bin/apxs' '--enable-safe-mode'
'--with-exec-dir=/opt/local/php5/bin' '--enable-bcmath'
'--enable-gd-native-ttf' '--enable-soap' '--enable-sockets'
'--disable-rpath' '--enable-ftp' '--with-gd'
'--with-gettext'
'--with-imap=/src/Web/IMap/imap-2004g'
'--with-imap-ssl=/src/Web/IMap/imap-2004g'
'--with-jpeg-dir=/usr/lib/amd64/' '--with-ldap=/usr'
'--with-mcrypt=/opt/local' '--with-png-dir=/usr/lib/amd64/'
'--with-pspell=/usr' '--with-openssl=/opt/csw' '--with-zlib'
'--with-libxml-dir=/opt/csw' '--with-mysql=/opt/local/mysql/mysql'
'--with-oci8=/opt/local/oracle/10103_client' '--with-xpm-dir=/usr/lib'
'--enable-memory-limit' '--with-gdbm=/opt/csw'
'--with-db4=/opt/csw/bdb4' '--with-mhash=/opt/local/mhash'
'--with-curl=/opt/local/curl' '--with-pear=/opt/local/php5'
'--enable-pdo=shared' '--with-pdo-sqlite=shared'
'--with-sqlite=shared'
'--with-mbstring'
'--with-mysqli=/opt/local/mysql/mysql/bin/mysql_config'
'--with-ld=/usr/sfw/i386-sun-solaris2.10/bin/ld' '--with-gnu-ld'
Reproduce code:
---------------
http://www.cwd.net.au/OCI_Lob_Load_problem.phps
Expected result:
----------------
The OCI-Lob::load method returns the string.
Old but working server output:
Connect Id: Resource id #2Object instanceof OCI_Lob - failed
Timetable notes: OCI-Lob Object ( [descriptor] => Resource id #6 )
is_a(Object, OCI-Lob) - succeeded
int(0) int(59) bool(true) string(59) "1.4 Unit Additional Timetable
Information:"
Actual result:
--------------
New put broken lob server output:
Connect Id: Resource id #2Object instanceof OCI_Lob - failed
Timetable notes: OCI-Lob Object ( [descriptor] => Resource id #6 )
is_a(Object, OCI-Lob) - succeeded
int(0) int(59) bool(true) string(0) ""
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38704&edit=1