xref: /PHP-5.4/ext/intl/tests/bug62081.phpt (revision 07c0d714)
1--TEST--
2Bug #62081: IntlDateFormatter leaks memory if called twice
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6	die('skip intl extension not enabled');
7--FILE--
8<?php
9ini_set('intl.error_level', E_WARNING);
10$x = new IntlDateFormatter(1,1,1,1,1);
11var_dump($x->__construct(1,1,1,1,1));
12--EXPECTF--
13Warning: IntlDateFormatter::__construct(): datefmt_create: cannot call constructor twice in %s on line %d
14NULL
15