PHP  
 PHP_7_0
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind Report for ext/oci8/tests/conn_attr_3.phpt ('Set and get of connection attributes with oci_close().')

Script

1: <?php
2:
3: $testuser     
'testuser_attr_3';  // Used in conn_attr.inc
4:
$testpassword 'testuser'
5:
6: require(
dirname(__FILE__)."/conn_attr.inc");
7:
8: echo
"**Test Set and get values for  the attributes with oci_close() ************\n";
9:
// With oci_connect ,oci_pconnect ,oci_new_connect
10:
11:
var_dump($conn1 get_conn(1)); //oci_connect()
12:
set_attr($conn1,'ACTION',1);
13:
get_attr($conn1,'ACTION');
14:
oci_close($conn1);
15:
16:
// Open another connect and verify the value.
17:
var_dump($conn1 get_conn(1)); //oci_connect()
18:
get_attr($conn1,'ACTION');
19:
oci_close($conn1);
20:
21:
var_dump($pconn1 get_conn(2)); //oci_pconnect()
22:
set_attr($pconn1,'MODULE',2);
23:
get_attr($pconn1,'MODULE');
24:
oci_close($pconn1);
25:
26:
// Open another connect and verify the value.
27:
var_dump($pconn1 get_conn(2)); //oci_pconnect()
28:
get_attr($pconn1,'MODULE');
29:
oci_close($pconn1);
30:
31:
var_dump($nconn1 get_conn(3)); //oci_new_connect()
32:
set_attr($nconn1,'CLIENT_INFO',3);
33:
set_attr($nconn1,'CLIENT_IDENTIFIER',3);
34:
get_attr($nconn1,'CLIENT_INFO');
35:
get_attr($nconn1,'CLIENT_IDENTIFIER');
36:
oci_close($nconn1);
37:
38:
// Open another connect and verify the value.
39:
var_dump($nconn1 get_conn(3)); //oci_new_connect()
40:
get_attr($nconn1,'CLIENT_INFO');
41:
get_attr($nconn1,'CLIENT_IDENTIFIER');
42:
oci_close($nconn1);
43:
44:
clean_up($c);
45: echo 
"Done\n";
46:
47:
?>
48:

Report

==30568== Invalid read of size 1
==30568==    at 0xA1E9C6: zval_get_type (zend_types.h:327)
==30568==    by 0xA1E9C6: php_oci_register_taf_callback (oci8_failover.c:108)
==30568==    by 0xA1E97F: php_oci_unregister_taf_callback (oci8_failover.c:92)
==30568==    by 0xA1998D: zif_oci_close (oci8_interface.c:1620)
==30568==    by 0x1092F2A: ZEND_DO_ICALL_SPEC_HANDLER (zend_vm_execute.h:586)
==30568==    by 0x1090CFD: execute_ex (zend_vm_execute.h:417)
==30568==    by 0x1091923: zend_execute (zend_vm_execute.h:458)
==30568==    by 0xFC3656: zend_execute_scripts (zend.c:1443)
==30568==    by 0xEC11C4: php_execute_script (main.c:2493)
==30568==    by 0x11C5E29: do_cli (php_cli.c:977)
==30568==    by 0x11C77B9: main (php_cli.c:1347)
==30568==  Address 0x1517af88 is 136 bytes inside a block of size 144 free'd
==30568==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==30568==    by 0xF643C0: _efree (zend_alloc.c:2472)
==30568==    by 0x9F3CAF: php_oci_connection_close (oci8.c:2267)
==30568==    by 0x9ED7DB: php_oci_connection_list_dtor (oci8.c:1266)
==30568==    by 0x10033C9: zend_resource_dtor (zend_list.c:76)
==30568==    by 0x10034A1: zend_list_close (zend_list.c:89)
==30568==    by 0xA1996F: zif_oci_close (oci8_interface.c:1617)
==30568==    by 0x1092F2A: ZEND_DO_ICALL_SPEC_HANDLER (zend_vm_execute.h:586)
==30568==    by 0x1090CFD: execute_ex (zend_vm_execute.h:417)
==30568==    by 0x1091923: zend_execute (zend_vm_execute.h:458)
==30568==    by 0xFC3656: zend_execute_scripts (zend.c:1443)
==30568==    by 0xEC11C4: php_execute_script (main.c:2493)
==30568==  Block was alloc'd at
==30568==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==30568==    by 0xF65A20: __zend_malloc (zend_alloc.c:2864)
==30568==    by 0xF6409D: _emalloc (zend_alloc.c:2457)
==30568==    by 0xF6492B: _safe_emalloc (zend_alloc.c:2516)
==30568==    by 0xF64D3D: _ecalloc (zend_alloc.c:2539)
==30568==    by 0x9F244D: php_oci_do_connect_ex (oci8.c:1981)
==30568==    by 0x9EECE0: php_oci_do_connect (oci8.c:1645)
==30568==    by 0xA19A45: zif_oci_connect (oci8_interface.c:1640)
==30568==    by 0x1092F2A: ZEND_DO_ICALL_SPEC_HANDLER (zend_vm_execute.h:586)
==30568==    by 0x1090CFD: execute_ex (zend_vm_execute.h:417)
==30568==    by 0x1091923: zend_execute (zend_vm_execute.h:458)
==30568==    by 0xFC3656: zend_execute_scripts (zend.c:1443)
==30568== 

 

Generated at Wed, 20 Sep 2017 13:49:37 +0000 (3 days ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.