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_002.phpt ('JIT MOD: 002')

Script

1: <?php
2:
function mod33(int $a) {
3:     return 
$a 33;
4: }
5: function 
mod32(int $a) {
6:     return 
$a 32;
7: }
8: function 
modNeg33(int $a) {
9:     return 
$a % -33;
10: }
11: function 
modNeg1(int $a) {
12:     return 
$a % -1;
13: }
14: function 
mod0(int $a) {
15:     return 
$a 0;
16: }
17:
var_dump(mod33(125));
18:
var_dump(mod32(125));
19:
var_dump(mod33(-125));
20:
var_dump(mod32(-125));
21:
var_dump(modNeg33(125));
22:
var_dump(modNeg33(-125));
23: try {
24:     
var_dump(modNeg1(125));
25: } catch (
Throwable $e) {
26:     echo 
"Exception " $e->getMessage() . "\n";
27: }
28: try {
29:     
var_dump(mod0(125));
30: } catch (
Throwable $e) {
31:     echo 
"Exception (" get_class($e) . "): " $e->getMessage() . "\n";
32: }
33:
?>
34:

Report

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

 

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

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