PHP 4.0 Bug #6561 Updated: PHP crashes while retrieving data from Oracle

From: Date: Thu, 19 Oct 2000 19:22:04 +0000
Subject: PHP 4.0 Bug #6561 Updated: PHP crashes while retrieving data from Oracle
Groups: php.dev 
Request: Send a blank email to php-dev+get-35558@lists.php.net to get a copy of this message
ID: 6561 User Update by: edink@proventum.net Old-Status: Open Status: Closed Bug Type: Reproduceable crash Description: PHP crashes while retrieving data from Oracle Fixed in 4.0.3 Previous Comments: --------------------------------------------------------------------------- [2000-10-02 19:31:00] edink@proventum.net Still does not work with the newest release. But I have some more info. The table that I'm trying to get the data from has the following structure: Column Name Null? Type ------------------------------ -------- ---- ID NOT NULL NUMBER(20) NAME VARCHAR2(60) PARENT_ID NUMBER(20) IS_LEAF VARCHAR2(1) CAT_NO NUMBER(5) TREE_LEVEL NUMBER(2) CATNO_PATH VARCHAR2(100) NAME_PATH VARCHAR2(350) ID_PATH VARCHAR2(100) CAT_COMMENT CLOB(4000) RESL_COMMENT CLOB(4000) SORTNUM NUMBER(10) Now the crach occurs when while doing (after parsing select * from category where parent_id=2: $res=@ociFetchInto($STMT, $a, OCI_ASSOC+OCI_RETURN_NULLS+OCI_RETURN_LOBS); It only crashes when the OCI_RETURN_LOBS flag is set. Works fine otherwise. The wierd part is that it only crashes for some IDs and not for others. The backtrace that I get when run against the latest cvs (2000-10-02) is: Program received signal SIGSEGV, Segmentation fault. 0x2ac8136b in do_end_function_declaration (function_token=0x2ae2b8d4) at zend_compile.c:771 771 CG(active_op_array) = function_token->u.op_array; #0 0x2ac8136b in do_end_function_declaration (function_token=0x2ae2b8d4) at zend_compile.c:771 #1 0x2ad2c494 in yy_state_buf () from /data/ebizzext/apache/libexec/libphp4.so #2 0x2aca4e42 in add_assoc_unset (arg=0x8170ce4, key=0x2ad2c494 "Ì203f") at zend_API.c:246 #3 0x2ac9e21b in get_binary_op (opcode=136069104) at zend_opcode.c:397 #4 0x2aca92a4 in zend_if_strncmp (ht=136314156, return_value=0x2ad2c494, this_ptr=0x81b08b8, return_value_used=2147473912) at zend_builtin_functions.c:257 #5 0x2aca4e5f in add_assoc_unset (arg=0x81b1504, key=0x2ad2c494 "Ì203f") at zend_API.c:247 #6 0x2ac9e21b in get_binary_op (opcode=135989432) at zend_opcode.c:397 #7 0x2aca9344 in zend_if_strncmp (ht=135559724, return_value=0x7fffda20, this_ptr=0x817cf5c, return_value_used=0) at zend_builtin_functions.c:258 #8 0x2ac93f72 in execute (op_array=0x81780b4) at ./zend_execute.c:329 #9 0x2aca60b0 in add_property_stringl (arg=0x8, key=0x3 <Address 0x3 out of bounds>, str=0x0, length=2147481588, duplicate=0) at zend_API.c:682 #10 0x2acb5191 in yyunput (c=2147481588, yy_bp=0x2ad2c494 "Ì203f") at configuration-scanner.c:1297 #11 0x2acb1d39 in php_error_cb (type=135468092, error_filename=0x0, error_lineno=135468092, format=0x813143c "

« previous php.dev (#35558) next »