1--TEST--
2GH-9186 Dynamic property unserialization should trigger a deprecated notice
3--EXTENSIONS--
4gmp
5--FILE--
6<?php
7
8$g = gmp_init(0);
9$g->{1} = 123;
10
11$serialized = serialize($g);
12var_dump(unserialize($serialized));
13
14?>
15--EXPECTF--
16Deprecated: Creation of dynamic property GMP::$1 is deprecated in %s on line %d
17
18Deprecated: Creation of dynamic property GMP::$1 is deprecated in %s on line %d
19object(GMP)#%d (%d) {
20  [1]=>
21  int(123)
22  ["num"]=>
23  string(1) "0"
24}
25