summaryrefslogtreecommitdiff
path: root/ext/intl/tests/bug74063.phpt
blob: 126c4cc5233b43928312ce090131052202655ca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #74063 (NumberFormatter fails after retrieval from session)
--SKIPIF--
<?php
if (!extension_loaded('intl')) die('skip intl extension not available');
?>
--FILE--
<?php
$formatter = new NumberFormatter("en_GB", NumberFormatter::CURRENCY);
try {
    serialize($formatter);
} catch (Exception $ex) {
    echo $ex->getMessage(), PHP_EOL;
}
?>
--EXPECT--
Serialization of 'NumberFormatter' is not allowed