From:             terry dot cullen at uq dot edu dot au
Operating system: Solaris 10x86
PHP version:      5.1.6
PHP Bug Type:     Oracle related
Bug description:  OCI-Lob::load returns empty string

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 bug report at http://bugs.php.net/?id=38704&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38704&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38704&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38704&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38704&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38704&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38704&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38704&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38704&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38704&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38704&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38704&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38704&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38704&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38704&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38704&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38704&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38704&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38704&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38704&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38704&r=mysqlcfg

Reply via email to