Skip to content

Commit dbbb742

Browse files
committed
Backport skipping of ext/date/tests/gh-124.phpt on ASAN
1 parent 70ad93d commit dbbb742

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/date/tests/gh-124.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ Test for timelib #124: Problem with large negative timestamps
33
--INI--
44
date.timezone=UTC
55
--SKIPIF--
6-
<?php if (PHP_INT_SIZE != 8) echo "skip this test is for 64-bit only"; ?>
6+
<?php
7+
if (PHP_INT_SIZE != 8) echo "skip this test is for 64-bit only";
8+
if (getenv('SKIP_ASAN')) die('skip triggers undefined behavior');
9+
?>
710
--FILE--
811
<?php
912
var_dump((new DateTime("@-9223372036854775808"))->getTimestamp());

0 commit comments

Comments
 (0)