← Back
Editing: oom_datetimeimmutable_construct.phpt
--TEST-- DateTimeImmutable::__construct() doesn't reach hard limit --INI-- memory_limit=64M --FILE-- <?php try { new DateTimeImmutable(str_repeat("\x01", 4 * 1024 * 1024)); } catch (\Throwable $e) { echo $e::class, ': ', $e->getMessage(), "\n"; } ?> --EXPECTF-- Exception: Failed to parse time string (%s) at position 0 (%s): Unexpected character
Save File
Cancel