xref: /php-src/ext/com_dotnet/tests/bug72498.phpt (revision 56f90492)
1--TEST--
2Bug #72498 variant_date_from_timestamp null dereference
3--EXTENSIONS--
4com_dotnet
5--FILE--
6<?php
7
8$v1 = PHP_INT_MAX;
9
10try {
11    var_dump(variant_date_from_timestamp($v1));
12} catch (\ValueError $e) {
13    echo $e->getMessage() . \PHP_EOL;
14}
15?>
16--EXPECT--
17variant_date_from_timestamp(): Argument #1 ($timestamp) must not go past 23:59:59, December 31, 3000, UTC
18