summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug62904.phpt
blob: 776a08e75692b3eaba7d381b3dd23546162ccaec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #62904 (Crash when cloning an object which inherits SplFixedArray)
--FILE--
<?php

class foo extends SplFixedArray {
    public function __construct($size) {
    }
}

$x = new foo(2);

$z = clone $x;
echo "No crash.";
--EXPECTF--
No crash.