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/old_oci_close1.phpt ('oci8.old_oci_close_semantics Off')

Script

1: <?php
2:
3:
require dirname(__FILE__)."/connect.inc";
4:
5:
var_dump($c);
6:
var_dump(oci_close($c));
7:
var_dump(oci_parse($c"select 1 from dual"));
8:
9: echo 
"Done\n";
10:
11:
?>
12:

Report

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

 

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

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