mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Backport skipping of ext/date/tests/gh-124.phpt on ASAN
This commit is contained in:
@@ -3,7 +3,10 @@ Test for timelib #124: Problem with large negative timestamps
|
||||
--INI--
|
||||
date.timezone=UTC
|
||||
--SKIPIF--
|
||||
<?php if (PHP_INT_SIZE != 8) echo "skip this test is for 64-bit only"; ?>
|
||||
<?php
|
||||
if (PHP_INT_SIZE != 8) echo "skip this test is for 64-bit only";
|
||||
if (getenv('SKIP_ASAN')) die('skip triggers undefined behavior');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump((new DateTime("@-9223372036854775808"))->getTimestamp());
|
||||
|
||||
Reference in New Issue
Block a user