summaryrefslogtreecommitdiff
path: root/ext/intl/dateformat/dateformat_helpers.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace zend_bool uses with boolNikita Popov2021-01-151-1/+1
| | | | | | | We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
* Declare array|int and object-of-class|int types in stubsMáté Kocsis2020-09-141-18/+10
| | | | | | Closes GH-6081 Co-Authored-By: Nikita Popov <nikic@php.net>
* Make error messages more consistent by fixing capitalizationMáté Kocsis2020-01-171-1/+1
| | | | Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
* Optimize instanceof_functionNikita Popov2019-10-251-2/+1
| | | | | | | | Split out the simple equality check into an inline function -- this is one of the common cases. Replace instanceof_function_ex with zend_class_implements_interface. There are a few more places where it may be used.
* Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
| | | | Closes GH-4732.
* Simplify namespace accessAnatol Belski2018-04-011-1/+1
| | | | The icu namespace is an alias which resolves to the real namespace.
* Utilize the recommended way to handle the icu namespaceAnatol Belski2018-03-311-0/+2
|
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-7/+7
|
* s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
|
* master renames phase 1Anatol Belski2014-08-251-6/+6
|
* ported ext/intl, bugfixes to goAnatol Belski2014-08-191-4/+4
|
* basic macro replacements, all at onceAnatol Belski2014-08-191-3/+3
|
* DateFormat plays nice with Calendar, TimeZoneGustavo André dos Santos Lopes2012-06-041-0/+106
The following changes were made: * The IntlDateFormatter constructor now accepts the usual values for its $timezone argument. This includes timezone identifiers, IntlTimeZone objects, DateTimeZone objects and NULL. An empty string is not accepted. An invalid time zone is no longer accepted (it used to use UTC in this case). * When NULL is passed to IntlDateFormatter, the time zone specified in date.timezone is used instead of the ICU default. * The IntlDateFormatter $calendar argument now accepts also an IntlCalendar. In this case, IntlDateFormatter::getCalendar() will return false. * The time zone passed to the IntlDateFormatter is ignored if it is NULL and if the calendar passed is an IntlCalendar object -- in this case, the IntlCalendar time zone will be used instead. Otherwise, the time zone specified in the $timezone argument is used instead. * Added IntlDateFormatter::getCalendarObject(), which always returns the IntlCalendar object that backs the DateFormat, even if a constant was passed to the constructor, i.e., if an IntlCalendar was not passed to the constructor. * Added IntlDateFormatter::setTimeZone(). It accepts the usual values for time zone arguments. If NULL is passed, the time zone of the IntlDateFormatter WILL be overridden with the default time zone, even if an IntlCalendar object was passed to the constructor. * Added IntlDateFormatter::getTimeZone(), which returns the time zone that's associated with the DateFormat. * Depreacated IntlDateFormatter::setTimeZoneId() and made it an alias for IntlDateFormatter::setTimeZone(), as the new ::setTimeZone() also accepts plain identifiers, besides other types. IntlDateFormatter::getTimeZoneId() is not deprecated however. * IntlDateFormatter::setCalendar() with a constant passed should now work correctly. This requires saving the requested locale to the constructor. * Centralized the hacks required to avoid compilation disasters on Windows due to some headers being included inside and outside of extern "C" blocks.