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

Valgrind Report for ext/opcache/tests/jit/shift_right_001.phpt ('JIT Shift Right: 001')

Script

1: <?php
2:
function shr(int $aint $b) {
3:     return 
$a >> $b;
4: }
5:
var_dump(shr(2560));
6:
var_dump(shr(2561));
7:
var_dump(shr(2562));
8:
var_dump(shr(-82));
9: try {
10:     
var_dump(shr(164));
11: } catch (
Throwable $e) {
12:     echo 
"Exception " $e->getMessage() . "\n";
13: }
14: try {
15:     
var_dump(shr(-164));
16: } catch (
Throwable $e) {
17:     echo 
"Exception " $e->getMessage() . "\n";
18: }
19: try {
20:     
var_dump(shr(1, -1));
21: } catch (
Throwable $e) {
22:     echo 
"Exception (" get_class($e) . "): " $e->getMessage() . "\n";
23: }
24:
?>
25:

Report

==26445== Conditional jump or move depends on uninitialised value(s)
==26445==    at 0x10271CF: zval_ptr_dtor_nogc (zend_variables.h:34)
==26445==    by 0x10271CF: ZEND_HANDLE_EXCEPTION_SPEC_HANDLER (zend_vm_execute.h:1983)
==26445==    by 0x1DA55048: ???
==26445==    by 0x1197C83: zend_execute (zend_vm_execute.h:66602)
==26445==    by 0xF27316: zend_execute_scripts (zend.c:1629)
==26445==    by 0xE15279: php_execute_script (main.c:2650)
==26445==    by 0x119DB6F: do_cli (php_cli.c:985)
==26445==    by 0x119F611: main (php_cli.c:1375)
==26445== 

 

Generated at Mon, 06 May 2019 17:58:35 +0000 (295 days ago)

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