xref: /PHP-8.1/ext/spl/tests/gh7809.phpt (revision 0ed39ed8)
1--TEST--
2Bug GH-7809 (Cloning a faked SplFileInfo object may segfault)
3--FILE--
4<?php
5class MySplFileInfo extends SplFileInfo {
6    public function __construct(string $filename) {}
7}
8
9$sfi = new MySplFileInfo("foo");
10clone $sfi;
11?>
12--EXPECT--
13