xref: /PHP-8.4/ext/spl/tests/bug62904.phpt (revision 7aacc705)
1--TEST--
2Bug #62904 (Crash when cloning an object which inherits SplFixedArray)
3--FILE--
4<?php
5
6class foo extends SplFixedArray {
7    public function __construct($size) {
8    }
9}
10
11$x = new foo(2);
12
13$z = clone $x;
14echo "No crash.";
15?>
16--EXPECT--
17No crash.
18