1--TEST--
2Unserialize GMP instance with internal reference to itself
3--EXTENSIONS--
4gmp
5--FILE--
6<?php
7$s = 'C:3:"GMP":23:{s:1:"2";a:1:{i:46;R:1;}}';
8var_dump(unserialize($s));
9?>
10--EXPECT--
11object(GMP)#1 (2) {
12 [46]=>
13 *RECURSION*
14 ["num"]=>
15 string(1) "2"
16}
17