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