1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/com_dotnet/tests/bug72498.phpt
George Peter Banyard e55f0c796c Promote warnings to Error in COM extension
Closes GH-6141
2020-09-21 14:32:00 +01:00

20 lines
442 B
PHP

--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