1--TEST--
2Using IAP functions on objects is deprecated
3--FILE--
4<?php
5
6$obj = (object)['a' => 'b'];
7var_dump(reset($obj));
8var_dump(current($obj));
9var_dump(key($obj));
10var_dump(next($obj));
11var_dump(end($obj));
12var_dump(prev($obj));
13
14?>
15--EXPECTF--
16Deprecated: reset(): Calling reset() on an object is deprecated in %s on line %d
17string(1) "b"
18
19Deprecated: current(): Calling current() on an object is deprecated in %s on line %d
20string(1) "b"
21
22Deprecated: key(): Calling key() on an object is deprecated in %s on line %d
23string(1) "a"
24
25Deprecated: next(): Calling next() on an object is deprecated in %s on line %d
26bool(false)
27
28Deprecated: end(): Calling end() on an object is deprecated in %s on line %d
29string(1) "b"
30
31Deprecated: prev(): Calling prev() on an object is deprecated in %s on line %d
32bool(false)
33