summaryrefslogtreecommitdiff
path: root/ext/intl
Commit message (Collapse)AuthorAgeFilesLines
...
| | * Fixed bug #62081Gustavo André dos Santos Lopes2012-05-232-0/+23
| | | | | | | | | | | | | | | | | | | | | Constructor of IntlDateFormatter would leak if called twice. Made calling it more than once error out before starting using resources.
| | * Fixed bug #62070Gustavo André dos Santos Lopes2012-05-232-1/+19
| | | | | | | | | | | | | | | Collator::getSortKey() was returning an unterminated string due the length given to RETURN_STRINGL being off by one.
* | | - Fixed build using g++ (which complains about jump that crosses initialization)Felipe Pena2012-05-201-1/+2
| | |
* | | Added IntlCalendar::toDateTime()Gustavo André dos Santos Lopes2012-05-177-1/+152
| | |
* | | Fixed a couple of memory leaksGustavo André dos Santos Lopes2012-05-171-7/+12
| | |
* | | Fixed bad DateTime construction state checkGustavo André dos Santos Lopes2012-05-172-4/+3
| | |
* | | MessageFormatter accepts IntlCalendar argumentsGustavo André dos Santos Lopes2012-05-172-0/+41
| | | | | | | | | | | | | | | Now MessageFormatter::format() accepts IntlCalendar objects to be used in arguments of type Format::kDate.
* | | Bug #58756: w.r.t MessageFormatter (partial fix)Gustavo André dos Santos Lopes2012-05-174-3/+94
| | | | | | | | | | | | | | | | | | | | | | | | I don't think the current ICU API allows this bug to be completely fixed. Right now, the code cannot control the time zone used in date/time formats that appear inside complex subformats. See the comment inside umsg_set_timezone().
* | | Handle bogus string in intl_charFromString().Gustavo André dos Santos Lopes2012-05-171-1/+8
| | |
* | | Whitespace.Gustavo André dos Santos Lopes2012-05-171-0/+1
| | |
* | | Added IntlTimeZone::fromDateTimeZone() and ::toDateTimeZone.Gustavo André dos Santos Lopes2012-05-179-2/+308
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IntlTimeZone::fromDateTimeZone(DateTimeZone $dtz) converts from an ext/date TimeZone to an IntlTimeZone. The conversion is done by feeding the time zone name (essentially what would be given by DateTimeZone::getName()) to ICU's TimeZone::createTimeZone except if it's an offset time zone. In that case, the offset is read from the ext/date time zone object structure and an appopriate id (of the form GMT<+|-><HH:MM>) is given to ICU's TimeZone::createTimeZone. Not all ext/date time zones are recognized for ICU. For instance, WEST is not. Note that these kind of abbreviations, as far as I can tell, can only be created via ext/date DateTime, not directly through DateTimeZone's constructor. For IntlTimeZone::toDateTimeZone(), the behavior is symmetrical. We instantiate a DateTimeZone and then call its constructor if we don't have an offset time zone, otherwise we mess with its structure. If the timezone is not valid for ext/date, then we allow the exception of DateTimeZone constructor to propagate.
* | | Fixed two IntlCalendar::setTimeZone() tests.Gustavo André dos Santos Lopes2012-05-172-10/+5
| | |
* | | Added IntlCalendar::fromDateTime()Gustavo André dos Santos Lopes2012-05-176-0/+216
| | | | | | | | | | | | | | | | | | | | | | | | IntlCalendar::fromDateTime(DateTime|string $dateTime[, string $locale) intlcal_from_date_time(...) If a string is given as the first argument, the method will try to instantiate a new DateTime object and use that instead.
* | | Accept DateTimeZone where time zones are expected.Gustavo André dos Santos Lopes2012-05-178-28/+164
| | | | | | | | | | | | | | | Also unified timezone handling in IntlCalendar::setTimeZone() to that in the IntlCalendar and IntlGregorianCalendar constructors.
* | | Keep date precision in MessageFormatter.Gustavo André dos Santos Lopes2012-05-132-5/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MessageFormatter::parse and MessageFormat::format (and their static equivalents) now don't throw away better than second precision in the arguments. It's already bad enough that in MessageFormatter and IntlDateFormatter we use seconds since epoch instead of milliseconds since epoch, deviating from the ICU date representations. But we don't need to throw away extra precision when parsing dates; we can keep the seconds since epoch convention and return non integer doubles with only a small BC impact. Note that we already could return doubles from MessageFormatter::parse if the date was sufficiently in the past or in the future.
* | | ICU < 4.8 compat in MessageFormatterGustavo André dos Santos Lopes2012-05-1312-44/+155
| | | | | | | | | | | | | | | | | | Restricted support for named arguments to ICU 4.8+. Also added bound checks when converting arguments to Formattables.
* | | Don't check number of args in msgfmt_do_formatGustavo André dos Santos Lopes2012-05-131-11/+0
| | | | | | | | | | | | | | | | | | | | | The check does not work reliably across ICU versions when named arguments are added to the mix. For instance, for recent versions of ICU like 49, a pattern like "{foo,number} {foo}", has 0 returned from umsg_format_arg_count(), but for ICU 4.0, this returns 2.
* | | Added new MessageFormatter tests.Gustavo André dos Santos Lopes2012-05-139-0/+234
| | |
* | | Better error messages in MessageFormatter::format.Gustavo André dos Santos Lopes2012-05-133-156/+224
| | |
* | | Accept numeric strings for dates.Gustavo André dos Santos Lopes2012-05-131-8/+41
| | | | | | | | | | | | Refactored umsg_helper_zval_to_millis in the process.
* | | Cache arguments type info in MessageFormatter.Gustavo André dos Santos Lopes2012-05-137-15/+61
| | |
* | | Set global error if insufficient numeric args. WS.Gustavo André dos Santos Lopes2012-05-133-12/+12
| | |
* | | Fixed MessageFormatter subformat tests.Gustavo André dos Santos Lopes2012-05-132-4/+4
| | |
* | | Refactoring of patch for FR #61871.Gustavo André dos Santos Lopes2012-05-133-299/+321
| | |
* | | Orig patch for FR #61871 by David SklarGustavo André dos Santos Lopes2012-05-135-69/+460
| | |
* | | Merge branch 'PHP-5.4'Felipe Pena2012-04-231-0/+4
|\ \ \ | |/ / | | | | | | | | | * PHP-5.4: - Fixed bug #61829 (Memory leak when calling MessageFormatter's constructor twice)
| * | Merge branch 'PHP-5.3' into PHP-5.4Felipe Pena2012-04-231-0/+4
| |\ \ | | |/ | | | | | | | | | * PHP-5.3: - Fixed bug #61829 (Memory leak when calling MessageFormatter's constructor twice)
| | * - Fixed bug #61829 (Memory leak when calling MessageFormatter's constructor ↵Felipe Pena2012-04-231-0/+4
| | | | | | | | | | | | twice)
* | | Merge branch 'PHP-5.4'Stanislav Malyshev2012-04-193-3/+44
|\ \ \ | |/ / | | | | | | | | | * PHP-5.4: Bug#59597 NumberFormatter::parse() with TYPE_INT64 results in a 32 bit integer
| * | Merge branch 'PHP-5.3' into PHP-5.4Stanislav Malyshev2012-04-193-3/+44
| |\ \ | | |/ | | | | | | | | | * PHP-5.3: Bug#59597 NumberFormatter::parse() with TYPE_INT64 results in a 32 bit integer
| | * Merge branch 'pull-request/61' into PHP-5.3Stanislav Malyshev2012-04-193-3/+44
| | |\ | | | | | | | | | | | | | | | | * pull-request/61: Bug#59597 NumberFormatter::parse() with TYPE_INT64 results in a 32 bit integer
| | | * Bug#59597 NumberFormatter::parse() with TYPE_INT64 results in a 32 bit integerSherif Ramadan2012-04-192-3/+21
| | |/
| | * Fix bug #61448 intl tests fail with icu >= 4.8Anatoliy Belsky2012-03-2838-26/+2931
| | |
* | | Fixed tests that required a "default" timezone.Gustavo André dos Santos Lopes2012-04-0154-0/+108
| | | | | | | | | | | | | | | Added date.timezone=Atlantic/Azores to all tests that were failing because of ext/date warning about a timezone not having been set.
* | | Compatibility with old versions of ICU (4.0+).Gustavo André dos Santos Lopes2012-04-0133-0/+108
| | |
* | | Added support for new method TimeZone::getUnknown() added in ICU 49.Gustavo André dos Santos Lopes2012-04-016-0/+84
| | |
* | | Supported Calendar methods new to ICU 49.Gustavo André dos Santos Lopes2012-04-018-0/+362
| | |
* | | Fix TimeZone tests failing due to new data in ICU 49.Gustavo André dos Santos Lopes2012-04-016-7/+77
| | |
* | | Initial checkin of calendar/timezone code.Gustavo André dos Santos Lopes2012-04-01143-6/+8044
| | |
* | | Convert EOL style to Unix.Gustavo André dos Santos Lopes2012-04-011-21/+21
| | |
* | | Merge branch 'PHP-5.4'Anatoliy Belsky2012-03-2838-26/+2931
|\ \ \ | |/ / | | | | | | | | | * PHP-5.4: Fix bug #61448 intl tests fail with icu >= 4.8
| * | Merge branch 'PHP-5.3' into PHP-5.4Anatoliy Belsky2012-03-2838-26/+2931
| |\ \ | | | | | | | | | | | | | | | | * PHP-5.3: Fix bug #61448 intl tests fail with icu >= 4.8
| | * | Fix bug #61448 intl tests fail with icu >= 4.8Anatoliy Belsky2012-03-2838-26/+2931
| | |/
* | | Merge branch 'PHP-5.4'Stanislav Malyshev2012-03-254-8/+8
|\ \ \ | |/ / | | | | | | | | | * PHP-5.4: fix tests
| * | fix testsStanislav Malyshev2012-03-254-8/+8
| | |
* | | Merge branch 'PHP-5.4'Stanislav Malyshev2012-03-252-1/+12
|\ \ \ | |/ / | | | | | | | | | * PHP-5.4: fix bug #61487 - bad bounds check in grapheme_strpos
| * | Merge branch 'PHP-5.3' into PHP-5.4Stanislav Malyshev2012-03-252-1/+12
| |\ \ | | |/ | | | | | | | | | * PHP-5.3: fix bug #61487 - bad bounds check in grapheme_strpos
| | * fix bug #61487 - bad bounds check in grapheme_strposStanislav Malyshev2012-03-252-1/+12
| | |
| | * Same thing here. "June 18, 1969 8:49:59 AM " does not contain a timezone, so ↵Rasmus Lerdorf2012-02-051-3/+3
| | | | | | | | | | | | | | | | | | | | | there is no way to know whether dst should be applied or not.
| | * Without a timezone you can't know whether it is dst or not in this oneRasmus Lerdorf2012-02-051-2/+2
| | |