xref: /PHP-8.3/ext/intl/tests/bug74063.phpt (revision 74859783)
1--TEST--
2Bug #74063 (NumberFormatter fails after retrieval from session)
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7$formatter = new NumberFormatter("en_GB", NumberFormatter::CURRENCY);
8try {
9    serialize($formatter);
10} catch (Exception $ex) {
11    echo $ex->getMessage(), PHP_EOL;
12}
13?>
14--EXPECT--
15Serialization of 'NumberFormatter' is not allowed
16