PHP 4.0 Bug #5258: oci8 crashes when NLS_LANG is set to ".UTF8" instead of ".WE8ISO8859P1"

From: Date: Thu, 29 Jun 2000 09:02:25 +0000
Subject: PHP 4.0 Bug #5258: oci8 crashes when NLS_LANG is set to ".UTF8" instead of ".WE8ISO8859P1"
Groups: php.dev 
Request: Send a blank email to php-dev+get-22602@lists.php.net to get a copy of this message
From: ajung@sz-sb.de Operating system: Solaris 2.7 PHP version: 4.0.0 Release PHP Bug Type: Oracle related Bug description: oci8 crashes when NLS_LANG is set to ".UTF8" instead of ".WE8ISO8859P1" <? $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

« previous php.dev (#22602) next »