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

Valgrind Report for ext/opcache/tests/bug78185.phpt ('Bug #78185: file cache only no longer works')

Script

1: <?php
2:
if (substr(PHP_OS03) !== 'WIN') {
3:     
$pattern __DIR__ '/*/' __DIR__ '/*78185.php.bin';
4: } else {
5:     
$pattern __DIR__ '/*/*/' str_replace(':'''__DIR__) . '/*78185.php.bin';
6: }
7: foreach (
glob($pattern) as $p) {
8:     
var_dump($p);
9: }
10:
?>
11:

Report

==3449== Syscall param writev(vector[...]) points to uninitialised byte(s)
==3449==    at 0xD15ECDB: writev (in /lib64/libc-2.12.so)
==3449==    by 0x14D04F4E: zend_file_cache_script_store (zend_file_cache.c:881)
==3449==    by 0x14CDE9C6: store_script_in_file_cache (ZendAccelerator.c:1327)
==3449==    by 0x14CDEA9E: cache_script_in_file_cache (ZendAccelerator.c:1344)
==3449==    by 0x14CE0BE7: file_cache_compile_file (ZendAccelerator.c:1759)
==3449==    by 0x14CE0ECA: persistent_compile_file (ZendAccelerator.c:1806)
==3449==    by 0x11213C6: zend_execute_scripts (zend.c:1492)
==3449==    by 0x1011197: php_execute_script (main.c:2599)
==3449==    by 0x13A3420: do_cli (php_cli.c:1011)
==3449==    by 0x13A4EAA: main (php_cli.c:1403)
==3449==  Address 0x1ffeffb9c8 is on thread 1's stack
==3449==  in frame #1, created by zend_file_cache_script_store (zend_file_cache.c:814)
==3449== 

 

Generated at Thu, 17 Oct 2019 23:21:35 +0000 (2 days ago)

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