mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
56f90492d6
For rationale, see https://github.com/php/php-src/pull/6787 Extensions migrated in this part: * bcmath * bz2 * calendar * com_dotnet * ctype Closes GH-6797.
18 lines
368 B
PHP
18 lines
368 B
PHP
--TEST--
|
|
Bug #72498 variant_date_from_timestamp null dereference
|
|
--EXTENSIONS--
|
|
com_dotnet
|
|
--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
|