php-src/ext/gmp/tests/unserialize_with_reference.phpt
Max Semenik e9f783fcdd Migrate skip checks to --EXTENSIONS--, p3
For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
2021-04-03 15:23:25 +02:00

16 lines
263 B
PHP

--TEST--
Unserialize GMP instance with internal reference to itself
--EXTENSIONS--
gmp
--FILE--
<?php
$s = 'C:3:"GMP":23:{s:1:"2";a:1:{i:46;R:1;}}';
var_dump(unserialize($s));
?>
--EXPECT--
object(GMP)#1 (2) {
[46]=>
*RECURSION*
["num"]=>
string(1) "2"
}