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

Valgrind Report for ext/date/tests/mktime-3-64bit.phpt ('mktime() [3] (64-bit)')

Script

1: <?php
2: $tzs 
= array("America/Toronto""Europe/Oslo");
3:
$years = array(069707199100101105110190019011902199920002001);
4:
5: foreach (
$tzs as $tz) {
6:     echo 
$tz"\n";
7:     
date_default_timezone_set($tz);
8:     foreach (
$years as $year) {
9:         
printf("Y: %4d - "$year);
10:         
$ret mktime(11111$year);
11:         if (
$ret == FALSE) {
12:             echo 
"out of range\n";
13:         } else {
14:             echo 
date("F ".DATE_ISO8601$ret), "\n";
15:         }
16:     }
17:     echo 
"\n";
18: }
19:
?>
20:

Report

==7118== Conditional jump or move depends on uninitialised value(s)
==7118==    at 0x4DEC1D: do_adjust_timezone (tm2unixtime.c:467)
==7118==    by 0x4DEF86: timelib_update_ts (tm2unixtime.c:511)
==7118==    by 0x45B401: php_mktime (php_date.c:1583)
==7118==    by 0x45B501: zif_mktime (php_date.c:1603)
==7118==    by 0x116E86B: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:957)
==7118==    by 0x116E86B: execute_ex (zend_vm_execute.h:60373)
==7118==    by 0x1197C83: zend_execute (zend_vm_execute.h:66602)
==7118==    by 0xF27316: zend_execute_scripts (zend.c:1629)
==7118==    by 0xE15279: php_execute_script (main.c:2650)
==7118==    by 0x119DB6F: do_cli (php_cli.c:985)
==7118==    by 0x119F611: main (php_cli.c:1375)
==7118== 

 

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

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