--TEST-- GH-22047: ArrayObject invalid iterator class in serialized payload --FILE-- $v) { echo "should not reach here\n"; } } catch (UnexpectedValueException $e) { echo $e->getMessage(), "\n"; } ?> --EXPECTF-- Cannot deserialize ArrayObject with iterator class 'GlobIterator'; this class is not derived from ArrayIterator