xref: /PHP-7.0/ext/com_dotnet/tests/bug72498.phpt (revision 3455848d)
1--TEST--
2Bug #72498 variant_date_from_timestamp null dereference
3--SKIPIF--
4<?php # vim:ft=php
5if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present";
6if (PHP_INT_SIZE != 8) print  "skip 64-bit only";
7?>
8--FILE--
9<?php
10
11$v1 = PHP_INT_MAX;
12var_dump(variant_date_from_timestamp($v1));
13?>
14--EXPECTF--
15Warning: variant_date_from_timestamp(): Invalid timestamp %d in %sbug72498.php on line %d
16bool(false)
17