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/mod_001.phpt ('JIT MOD: 001')

Script

1: <?php
2:
function mod(int $aint $b) {
3:     return 
$a $b;
4: }
5:
var_dump(mod(12533));
6:
var_dump(mod(12532));
7:
var_dump(mod(-12533));
8:
var_dump(mod(-12532));
9:
var_dump(mod(125, -33));
10:
var_dump(mod(-125, -33));
11: try {
12:     
var_dump(mod(125, -1));
13: } catch (
Throwable $e) {
14:     echo 
"Exception " $e->getMessage() . "\n";
15: }
16: try {
17:     
var_dump(mod(1250));
18: } catch (
Throwable $e) {
19:     echo 
"Exception (" get_class($e) . "): " $e->getMessage() . "\n";
20: }
21:
?>
22:

Report

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

 

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

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