summaryrefslogtreecommitdiff
path: root/ext/intl/formatter/formatter_main.c
Commit message (Collapse)AuthorAgeFilesLines
* Make NumberFormatter ctor $pattern nullableNikita Popov2021-02-091-1/+1
| | | | | | | | Whether the pattern is needed depends on the used style. If no pattern is needed, null is a more sensible value than an empty string. fixup
* Prevent double-construction of NumberFormatterNikita Popov2020-08-261-0/+4
|
* Remove proto comments from C filesMax Semenik2020-07-061-18/+4
| | | | Closes GH-5758
* Use RETURN_THROWS() after zend_parse_method_parameters()Máté Kocsis2020-01-021-2/+2
|
* Cleanup return values for Intl when parameter parsing is unsuccessfulMáté Kocsis2019-10-301-2/+2
| | | | Closes GH-4871.
* Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
| | | | Closes GH-4732.
* Remove unused is_constructor argumentsNikita Popov2019-07-151-3/+3
|
* Intl: Don't separately report "bad arguments" errorsNikita Popov2019-03-111-8/+0
| | | | | zpp will be throwing for these now, don't report them in addition to that.
* Make zpp failures always throw, independent of strict_typesNikita Popov2019-03-111-2/+1
| | | | | | | | | | | Previously zend_parse_parameters (and FastZPP) would handle invalid arguments depending on strict_types: With strict_types=1, a TypeError is thrown, with strict_types=0 a warning is thrown and (usually) NULL is returned. Additionally, some functions (constructors always and other methods sometimes) opt-it to throwing regardless of strict_types. This commit changes zpp to always generate a TypeError exception in PHP 8.
* Remove local variablesPeter Kokot2019-02-031-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* Use ZEND_THIS macro to hide implementation details in extensions code.Dmitry Stogov2018-11-151-1/+1
|
* Replace getThis() by EX(This), when additional check is not necessary.Dmitry Stogov2018-11-141-1/+1
|
* Remove return types from some magic method in protosGabriel Caruso2018-03-091-1/+1
| | | | __construct, __destruct, __wakeup does not have return types defined.
* Fix Intl constructor leaksNikita Popov2015-04-171-8/+7
| | | | | Drop the Z_OBJ(return_value) = NULL hack and return status code from ctor function instead.
* Always throw TypeException on throwing zpp failuresNikita Popov2015-04-061-4/+5
| | | | | | | | | | | | | | Introduces a ZEND_PARSE_PARAMS_THROW flag for zpp, which forces to report FAILURE errors using a TypeException instead of a Warning, like it would happen in strict mode. Adds a zend_parse_parameters_throw() convenience function, which invokes zpp with this flag. Converts all cases I could identify, where we currently have throwing zpp usage in constructors and replaces them with this API. Error handling is still replaced to EH_THROW in some cases to handle other, domain-specific errors in constructors.
* Patch improvement:Dmitry Stogov2015-03-301-11/+13
| | | | | | | | Removed the corresponding core code. Fixed ext/com_dotnet and ext/date. Refactored ext/intl changes. Improved ext/fileinfo and ext/pdo changes. Fixed tests.
* Converted intl extension to use IntlException in constructors.Danack2015-03-151-7/+7
|
* Fixed use after freeDmitry Stogov2015-01-261-1/+0
|
* cleanup intl typesStanislav Malyshev2014-12-291-3/+3
|
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-9/+9
|
* s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
|
* first show to make 's' work with size_tAnatol Belski2014-08-271-1/+1
|
* master renames phase 1Anatol Belski2014-08-251-3/+3
|
* ported ext/intl, bugfixes to goAnatol Belski2014-08-191-2/+2
|
* basic macro replacements, all at onceAnatol Belski2014-08-191-1/+1
|
* Partial fix that allows internal constructors to set $this to null.Dmitry Stogov2014-07-091-0/+8
| | | | | | | The address of $this passed to drectly called internal constructor in execute_data->return_value. Internal constructors should use ZEND_CTOR_MAKE_NULL() macro (insted of previous ZEND_NULL(EG(This))) to do the work. This patch doesn't fix the problem for indirectly called constructors. e.g. parant::__construct().
* Fixed segfault, segfault and segfaultXinchen Hui2014-06-291-2/+5
|
* Refactoring ext/intl (only compilerable now, far to finish :<)Xinchen Hui2014-06-281-2/+2
|
* Refactoring ext/intl (incompleted)Xinchen Hui2014-06-281-4/+4
|
* fix const warnings in intl methodsStanislav Malyshev2013-10-201-1/+1
|
* Merge branch 'PHP-5.4'Gustavo Lopes2012-08-221-1/+1
|\ | | | | | | | | | | | | | | | | | | | | * PHP-5.4: Fix handling of several uinitialized intl objects Fix handling of several uinitialized intl objects - Fix NEWS - BFN Conflicts: ext/intl/dateformat/dateformat.c
| * Fix handling of several uinitialized intl objectsGustavo Lopes2012-08-221-1/+1
| |
* | Merge branch '5.4'Gustavo André dos Santos Lopes2012-07-301-0/+0
|\ \ | |/ | | | | | | | | | | | | * 5.4: Fix test title and limit it to ICU >= 4.8 Remove executable bit from files Limit test to ICU 49 Remove executable bit from files
| * Remove executable bit from filesGustavo André dos Santos Lopes2012-07-301-0/+0
| |
* | Do not fetch default locale once on minit or rinitGustavo Lopes2012-07-231-1/+1
|/ | | | | The default locale is now requested to ICU when it's needed by using intl_get_default_locale().
* cleanup some code, improve error handlingStanislav Malyshev2009-12-231-1/+1
|
* MFH:Felipe Pena2008-08-111-7/+7
| | | | | | | - Added arginfo - Fixed WS - Changed C++ comments to C comments
* use correct locale checkStanislav Malyshev2008-07-221-1/+1
|
* refactor ctors, cleanup codeStanislav Malyshev2008-07-221-84/+20
|
* Merge intl extension into coreStanislav Malyshev2008-07-071-0/+220