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

Valgrind Report for sapi/phpdbg/tests/info_001.phpt ('Test basic info functionality')

Script

1: <?php
2:
3:
namespace Foo {
4:     class 
Bar {
5:         function 
Foo($bar) {
6:             
var_dump($bar);
7:         }
8:
9:         function 
baz() { }
10:     }
11: }
12:
13: namespace {
14:     function 
foo($baz) {
15:         
var_dump(strrev($baz));
16:     }
17:
18:     (new \
Foo\Bar)->Foo("test");
19:     
foo("test");
20: }
21:

Report

==17967== Invalid read of size 4
==17967==    at 0xA473562: kpufhndl0 (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17967==    by 0xA479952: kpufhndl (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17967==    by 0xA3435C4: OCIHandleFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17967==    by 0xAECF0C: zm_shutdown_pdo_oci (pdo_oci.c:140)
==17967==    by 0x110A93F: module_destructor (zend_API.c:2564)
==17967==    by 0x10F49EC: module_destructor_zval (zend.c:690)
==17967==    by 0x112DA2C: _zend_hash_del_el_ex (zend_hash.c:998)
==17967==    by 0x112DA2C: _zend_hash_del_el (zend_hash.c:1021)
==17967==    by 0x112DA2C: zend_hash_graceful_reverse_destroy (zend_hash.c:1477)
==17967==    by 0x1105EBF: zend_destroy_modules (zend_API.c:2008)
==17967==    by 0x10F51EA: zend_shutdown (zend.c:905)
==17967==    by 0xFE7CB8: php_module_shutdown (main.c:2453)
==17967==    by 0x137FD34: main (phpdbg.c:2162)
==17967==  Address 0x15ad3e60 is 0 bytes inside a block of size 43,632 free'd
==17967==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==17967==    by 0xA769CDE: ssMemFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17967==    by 0xA82FED9: sktsfFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17967==    by 0xB1BFF6B: kpummefree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17967==    by 0xA4796E6: kpufhndl0 (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17967==    by 0xA479952: kpufhndl (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17967==    by 0xA3435C4: OCIHandleFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17967==    by 0xAECF0C: zm_shutdown_pdo_oci (pdo_oci.c:140)
==17967==    by 0x110A93F: module_destructor (zend_API.c:2564)
==17967==    by 0x10F49EC: module_destructor_zval (zend.c:690)
==17967==    by 0x112DA2C: _zend_hash_del_el_ex (zend_hash.c:998)
==17967==    by 0x112DA2C: _zend_hash_del_el (zend_hash.c:1021)
==17967==    by 0x112DA2C: zend_hash_graceful_reverse_destroy (zend_hash.c:1477)
==17967==    by 0x1105EBF: zend_destroy_modules (zend_API.c:2008)
==17967==  Block was alloc'd at
==17967==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==17967==    by 0xA769CEC: ssMemMalloc (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17967==    by 0xA82FEEB: sktsfMalloc (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17967==    by 0xB1BFEFD: kpummealloc (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17967==    by 0xA483030: kpuinit0 (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17967==    by 0xA4812FC: kpuenvcr (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17967==    by 0xA3434E9: OCIEnvCreate (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17967==    by 0xAECE7A: zm_activate_pdo_oci (pdo_oci.c:118)
==17967==    by 0x110AB00: zend_activate_modules (zend_API.c:2600)
==17967==    by 0xFE54F8: php_request_startup (main.c:1694)
==17967==    by 0x137E1F7: main (phpdbg.c:1806)
==17967== 

 

Generated at Sun, 11 Nov 2018 11:52:49 +0000 (6 days ago)

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