]> granicus.if.org Git - php/commit
Fixed bug #60785
authorGustavo André dos Santos Lopes <cataphract@php.net>
Thu, 24 May 2012 08:44:44 +0000 (10:44 +0200)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Thu, 24 May 2012 09:06:21 +0000 (11:06 +0200)
commit2da2de46a8dc9d44b624c40adb0d6bf698567167
treed05be33e6507ed15e0d85c7facca6acfd3714c0b
parente08566c6139461db9dbf0f6c2e870d67923ee587
Fixed bug #60785

Memory leak in IntlDateFormatter constructor.

udat_setCalendar() clones the calendar before it adopts it,
so we were leaking the original calendar.

Also we now validate the calendar type.
ext/intl/dateformat/dateformat.c
ext/intl/tests/dateformat_calendars.phpt [new file with mode: 0644]