php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5258 oci8 crashes when NLS_LANG is set to ".UTF8" instead of ".WE8ISO8859P1"
Submitted: 2000-06-29 05:02 UTC Modified: 2006-07-17 08:09 UTC
From: ajung at sz-sb dot de Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.0.0 Release OS: Solaris 2.7
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ajung at sz-sb dot de
New email:
PHP Version: OS:

 

 [2000-06-29 05:02 UTC] ajung at sz-sb dot de
<?
        $conn = OCIPLogon("xxt","xx","xx");
        $stmt = OCIParse($conn,"select lob_support.get_xml_long('ojs_de','docnum
',docnum) as htmldoc from ojs_de where docnum=2000000146");

        OCIExecute($stmt);

        $nrows = OCIFetchInto($stmt,$results,OCI_ASSOC);

        echo "Treffer: $nrows\n";


        while(list($k,$v) = each($results)) {
                echo "Key: $k\n";
                echo "Val: $v\n".strlen($v);
                $data = $v->load();
                echo $data;
        }

        OCILogOff($conn);                            
?>
<b>Warning</b>:  OCILobRead: OCI_NEED_DATA in <b>test.php</b> on line <b>15</b><
br>

Program received signal SIGSEGV, Segmentation fault.
0xfea36dec in strlen () from /usr/lib/libc.so.1        


Program received signal SIGSEGV, Segmentation fault.
0xfea36dec in strlen () from /usr/lib/libc.so.1
(gdb) bt
#0  0xfea36dec in strlen () from /usr/lib/libc.so.1
#1  0x57568 in php_message_handler_for_zend (message=7, data=0x0) at main.c:637
#2  0x6d10c in zend_message_dispatcher (message=7, data=0x0) at zend.c:485
#3  0x60204 in _mem_block_check (ptr=0xffbef2f8, silent=0,
    __zend_filename=0xeaa70 "oci8.c", __zend_lineno=1602,
    __zend_orig_filename=0x0, __zend_orig_lineno=0) at zend_alloc.c:496
#4  0x5f6b8 in _efree (ptr=0xffbef2f8, __zend_filename=0xeaa70 "oci8.c",
    __zend_lineno=1602, __zend_orig_filename=0x0, __zend_orig_lineno=0)
    at zend_alloc.c:170
#5  0x8fd28 in oci_loadlob (connection=0x129878, mydescr=0x19a618,
    buffer=0xffbef2f8) at oci8.c:1613
#6  0x91c60 in php_if_ociloadlob (ht=0, return_value=0x19a8e8,
    this_ptr=0x129878, return_value_used=1) at oci8.c:2752
#7  0xba790 in execute ()
#8  0x58430 in php_execute_script (primary_file=0xffbefab8) at main.c:1200
#9  0x24844 in main (argc=2, argv=0xffbefb44) at cgi_main.c:641               

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-26 02:04 UTC] waldschrott@php.net
Please verify that it?s still happening using the latest version of PHP (release 4.0.1pl2 or CVS).
 [2000-08-07 08:00 UTC] thies@php.net
fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 14 05:01:28 2024 UTC