Annotation of embedaddon/php/ext/spl/tests/bug62904.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #62904 (Crash when cloning an object which inherits SplFixedArray)
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class foo extends SplFixedArray {       
                      7:     public function __construct($size) {
                      8:     }
                      9: }
                     10: 
                     11: $x = new foo(2);
                     12: 
                     13: try {
                     14:     $z = clone $x;
                     15: } catch (Exception $e) {
                     16:     var_dump($e->getMessage());
                     17: }
                     18: --EXPECTF--
                     19: string(40) "The instance wasn't initialized properly"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>