Skip to content

Commit 2efc25e

Browse files
committed
Fix date error messages for embedded NUL bytes
1 parent b2d9b61 commit 2efc25e

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎ext/date/tests/22993/dateInterval_nul_byte.phpt‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@ GH-22993: DateInterval error message with embedded NUL byte
55

66
try {
77
new DateInterval("foo\0bar");
8-
} catch (DateMalformedIntervalStringException $e) {
9-
echo $e->getMessage(), PHP_EOL;
10-
}
11-
12-
?>
13-
--EXPECTF--
14-
Fatal error: Uncaught ValueError: DateInterval::__construct(): Argument #1 ($duration) must not contain any null bytes in %s:%d
15-
Stack trace:
16-
#0 %s(%d): DateInterval->__construct('foo\x00bar')
17-
#1 {main}
188
} catch (Throwable $e) {
199
echo $e::class, ': ', $e->getMessage(), "\n";
2010
}

0 commit comments

Comments
 (0)