1
0
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:
Ilija Tovilo
2022-09-16 01:29:12 +02:00
parent 70ad93dd6e
commit dbbb7427be

View File

@@ -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());