PHP  
 PHP_HEAD
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

==25608== Invalid read of size 1
==25608==    at 0xA96B1E: zval_get_type (zend_types.h:390)
==25608==    by 0xA96B1E: php_oci_register_taf_callback (oci8_failover.c:108)
==25608==    by 0xA96AD7: php_oci_unregister_taf_callback (oci8_failover.c:92)
==25608==    by 0xA91959: zif_oci_close (oci8_interface.c:1620)
==25608==    by 0x11BD4EB: ZEND_DO_ICALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:573)
==25608==    by 0x1339863: execute_ex (zend_vm_execute.h:59726)
==25608==    by 0x1339EDB: zend_execute (zend_vm_execute.h:63763)
==25608==    by 0x10DF02D: zend_execute_scripts (zend.c:1494)
==25608==    by 0xFD0CE5: php_execute_script (main.c:2566)
==25608==    by 0x133FA79: do_cli (php_cli.c:1011)
==25608==    by 0x134142D: main (php_cli.c:1404)
==25608==  Address 0x151033a8 is 136 bytes inside a block of size 144 free'd
==25608==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==25608==    by 0x1076214: _efree (zend_alloc.c:2428)
==25608==    by 0xA6B758: php_oci_connection_close (oci8.c:2267)
==25608==    by 0xA6517B: php_oci_connection_list_dtor (oci8.c:1266)
==25608==    by 0x1120A31: zend_resource_dtor (zend_list.c:76)
==25608==    by 0x1120B09: zend_list_close (zend_list.c:89)
==25608==    by 0xA9193B: zif_oci_close (oci8_interface.c:1617)
==25608==    by 0x11BD4EB: ZEND_DO_ICALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:573)
==25608==    by 0x1339863: execute_ex (zend_vm_execute.h:59726)
==25608==    by 0x1339EDB: zend_execute (zend_vm_execute.h:63763)
==25608==    by 0x10DF02D: zend_execute_scripts (zend.c:1494)
==25608==    by 0xFD0CE5: php_execute_script (main.c:2566)
==25608==  Block was alloc'd at
==25608==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==25608==    by 0x10777DB: __zend_malloc (zend_alloc.c:2811)
==25608==    by 0x1075EF1: _emalloc (zend_alloc.c:2413)
==25608==    by 0x107677F: _safe_emalloc (zend_alloc.c:2472)
==25608==    by 0x1076B91: _ecalloc (zend_alloc.c:2495)
==25608==    by 0xA69EF6: php_oci_do_connect_ex (oci8.c:1981)
==25608==    by 0xA66680: php_oci_do_connect (oci8.c:1645)
==25608==    by 0xA91A11: zif_oci_connect (oci8_interface.c:1640)
==25608==    by 0x11BD9D3: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==25608==    by 0x1339863: execute_ex (zend_vm_execute.h:59726)
==25608==    by 0x1339EDB: zend_execute (zend_vm_execute.h:63763)
==25608==    by 0x10DF02D: zend_execute_scripts (zend.c:1494)
==25608== 

 

Generated at Sat, 09 Sep 2017 03:10:54 +0000 (14 days ago)

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