summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/tests/bug72498.phpt
blob: b9bd498af31a2f3a83d469e1847ddf5ec8aa879a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #72498 variant_date_from_timestamp null dereference
--SKIPIF--
<?php
if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present";
?>
--FILE--
<?php

$v1 = PHP_INT_MAX;

try {
    var_dump(variant_date_from_timestamp($v1));
} catch (\ValueError $e) {
    echo $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
variant_date_from_timestamp(): Argument #1 ($timestamp) must not go past 23:59:59, December 31, 3000, UTC