Re: PHP 4.0.3RC1

From: Date: Wed, 04 Oct 2000 18:12:28 +0000
Subject: Re: PHP 4.0.3RC1
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-34244@lists.php.net to get a copy of this message
OK. It's in ext/oci8/oci8.c. r 1.93 (2000-08-08) does not work, while r 1.92 is OK. The config line I used is: ./configure --with-apache=/data/src/apache_1.3.12 --with-oci8 --enable-sigchild --without-xml --without-mysql --enable-track-vars --disable-debug Edin On Wed, 4 Oct 2000, Andi Gutmans wrote: > Can you try and see what has changed between this version and 4.0.1pl2? > If you are used to using CVS you could do a binary search with the dates by > checking out CVS trees according to date and find the exact patch which > screwed this up. > > Andi > > At 01:09 AM 10/4/00 +0200, Edin Kadribasic wrote: > >On Mon, 2 Oct 2000, Andi Gutmans wrote: > > > > > http://www.php.net/~andi/php-4.0.3RC1.tar.gz > > > > > > I rolled the RC1 tarball. Please test it wherever you can. > > > Our aim is to release this week. I will try and work on Win32 binaries > > > tomorrow. > > > > > > Andi > > > --- > > > Andi Gutmans <andi@zend.com> > > > http://www.zend.com/ > > > > > > >Well, there is a bug introduced sometime after 4.0.1pl2 that makes using > >Oci8 extension impossible if your DB contains CLOB fields. > > > >On RH6.2 with Oracle 8.1.6 and PHP compiled with only oci8 extension, > >while executing: > > > > $dblink=OCILogon("user", "pass", ""); > > $stmt =OCIParse($dblink, "select name, cat_comment from category where > >parent_id=1"); > > OCIExecute($stmt); > > while (OCIFetchInto($stmt, $res, > >OCI_ASSOC+OCI_RETURN_NULLS+OCI_RETURN_LOBS)) > > { > > print $res["name"]."\n"; > > } > > > >Here name is varchar2(30) and cat_comment is clob. I've reported this bug > >(#6561), but I think I've got a decent backtrace now. > > > >Program received signal SIGSEGV, Segmentation fault. > >0x80e4b35 in _efree (ptr=0x34, __zend_filename=0x81753dc > >"zend_execute_API.c", __zend_lineno=261, > > __zend_orig_filename=0x8175c23 "zend_variables.c", > >__zend_orig_lineno=62) at zend_alloc.c:196 > >196 CALCULATE_REAL_SIZE_AND_CACHE_INDEX(p->size); > >(gdb) p p > >$41 = (zend_mem_header *) 0x10 > >(gdb) p p->size > >Cannot access memory at address 0x10 > >(gdb) bt > >#0 0x80e4b35 in _efree (ptr=0x34, __zend_filename=0x81753dc > >"zend_execute_API.c", __zend_lineno=261, > > __zend_orig_filename=0x8175c23 "zend_variables.c", > >__zend_orig_lineno=62) at zend_alloc.c:196 > >#1 0x80f498f in _zval_dtor (zvalue=0x8238034, __zend_filename=0x81753dc > >"zend_execute_API.c", __zend_lineno=261) at zend_variables.c:62 > >#2 0x80ebbd5 in _zval_ptr_dtor (zval_ptr=0x8238080, > >__zend_filename=0x8175c23 "zend_variables.c", __zend_lineno=182) at > >zend_execute_API.c:261 > >#3 0x80f4c8a in _zval_ptr_dtor_wrapper (zval_ptr=0x8238080) at > >zend_variables.c:182 > >#4 0x80f9f77 in zend_hash_destroy (ht=0x8237f3c) at zend_hash.c:564 > >#5 0x80f49b5 in _zval_dtor (zvalue=0x821968c, __zend_filename=0x8167023 > >"oci8.c", __zend_lineno=3394) at zend_variables.c:69 > >#6 0x8091925 in php_if_ocifetchinto (ht=3, return_value=0x82380d4, > >this_ptr=0x0, return_value_used=1) at oci8.c:3394 > >#7 0x8119db9 in execute (op_array=0x8219604) at ./zend_execute.c:1519 > >#8 0x80f5d2b in zend_execute_scripts (type=8, file_count=3) at zend.c:717 > >#9 0x807bd6c in php_execute_script (primary_file=0x7ffff7c4) at > >main.c:1200 > >#10 0x8103d4b in apache_php_module_main (r=0x8200ffc, > >display_source_mode=0) at sapi_apache.c:89 > >#11 0x8078eeb in send_php (r=0x8200ffc, display_source_mode=0, > >filename=0x8201aac "/data/aptest/htdocs/oratest.php") at mod_php4.c:510 > >#12 0x8078f18 in send_parsed_php (r=0x8200ffc) at mod_php4.c:521 > >#13 0x8123f33 in ap_invoke_handler (r=0x8200ffc) at http_config.c:508 > >#14 0x8137419 in process_request_internal (r=0x8200ffc) at > >http_request.c:1215 > >#15 0x813747c in ap_process_request (r=0x8200ffc) at http_request.c:1231 > >#16 0x812ed5e in child_main (child_num_arg=0) at http_main.c:4177 > >#17 0x812eeec in make_child (s=0x81bdb24, slot=0, now=970613625) at > >http_main.c:4281 > >#18 0x812f049 in startup_children (number_to_start=5) at http_main.c:4363 > >#19 0x812f676 in standalone_main (argc=4, argv=0x7ffff974) at > >http_main.c:4651 > >#20 0x812fe03 in main (argc=4, argv=0x7ffff974) at http_main.c:4978 > > > >-- > >Edin Kadribasic > >UNIX Developer > >Proventum.Net > > --- > Andi Gutmans <andi@zend.com> > http://www.zend.com/ > > -- Edin Kadribasic UNIX Developer Proventum.Net

« previous php.dev (#34244) next »