xref: /PHP-5.5/ext/spl/tests/bug62904.phpt (revision 13bcf685)
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
13try {
14    $z = clone $x;
15} catch (Exception $e) {
16    var_dump($e->getMessage());
17}
18--EXPECTF--
19string(40) "The instance wasn't initialized properly"
20