summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug62904.phpt
blob: 7e392da9abbd7745c592af5c6894cd5e91608ba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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);

try {
    $z = clone $x;
} catch (Exception $e) {
    var_dump($e->getMessage());
}
--EXPECTF--
string(40) "The instance wasn't initialized properly"