summaryrefslogtreecommitdiff
path: root/ext/intl/common/common_date.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Sync leading and final newlines in source code filesPeter Kokot2018-10-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Require ICU ≥ 50.1Christoph M. Becker2018-09-151-7/+0
| | | | | | | | | | | | | | | | | Given that ICU is a set of lively developed libraries, that ICU 50.1 has been released on 2012-11-05, and PHP 7.4 is scheduled to be released seven years after it, we consider it appropriate to ditch these legacy versions. Particularly, that would be a reasonable groundwork to implement part two of the “Deprecate and remove INTL_IDNA_VARIANT_2003” RFC[1], namely to default idn_to_ascii()'s and idn_to_utf8()'s $variant parameter to INTL_IDNA_VARIANT_UTS46, which is not defined in ICU < 4.6. See also the related discussion on internals@[2]. [1] <https://wiki.php.net/rfc/deprecate-and-remove-intl_idna_variant_2003> [2] <http://news.php.net/php.internals/101626>ff
* Simplify namespace accessAnatol Belski2018-04-011-2/+2
| | | | 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/+3
|
* Merge branch 'PHP-7.1' into PHP-7.2Derick Rethans2017-08-151-3/+3
|\
| * Merged PHP-7.0 by hand due to conflicts.Derick Rethans2017-08-151-3/+3
| |
* | Merge branch 'PHP-7.1'Nikita Popov2017-04-091-1/+4
|\ \ | |/
| * Fixed #74298 - IntlDateFormatter->format() doesn't return microseconds/fractionsandrewnester2017-04-091-1/+4
| |
* | Merge branch 'PHP-7.1'Nikita Popov2017-03-291-4/+4
|\ \ | |/
| * Let MessageFormatter and IntlDateFormatter accept DateTimeImmutable as wellBen Scholzen2017-03-291-4/+4
| |
* | Deduplicate NAN/INF portability, move to ZendAndrea Faulds2016-03-201-10/+4
|/
* cleanup intl typesStanislav Malyshev2014-12-291-1/+1
|
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-18/+18
|
* s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
|
* master renames phase 1Anatol Belski2014-08-251-7/+7
|
* basic macro replacements, all at onceAnatol Belski2014-08-191-7/+7
|
* Refactoring ext/intl (incompleted)Xinchen Hui2014-06-281-8/+5
|
* Added IntlDateFormatter::formatObject(). RefactorGustavo André dos Santos Lopes2012-07-221-22/+184
| | | | | | | | | | | | | | | | | | | To better support IntlCalendar, added this function: string IntlDateFormatter::formatObject(IntlCalendar|DateTime $obj [, array|int|string $format = null [, string $locale = null). $format is either of the constants IntlDateFormatter::FULL, etc., in which case this format applies to both the date and the time, an array in the form array($dateFormat, $timeFormat), or a string with the SimpleDateFormat pattern. This uses both the Calendar type and the timezone of the passed object to configure the formatter (a GregorianCalendar is forced for DateTime). Some stuff was moved around and slighlt modified to allow for more code reuse.
* Unified zval -> UDate conversionsGustavo André dos Santos Lopes2012-07-021-0/+88
Now IntlDateFormatter::format() also accepts IntlCalendar objects. Code is shared in MessageFormatter and IntlDateFormatter.